Blog
Page 307 of my articles, tutorials, and thoughts
Latest Articles
How to Get the Query Executed in Laravel 5? DB::getQueryLog() Returning Empty Array
# How to Get the Query Executed in Laravel 5? DB::getQueryLog() Returning Empty Array. š Have you ever found yourself scratching your head, wondering why Laravel's `DB::getQueryLog()` is returning an empty array when you're trying to view the log for a q
Doing HTTP requests FROM Laravel to an external API
š **Exploring HTTP Requests in Laravel to an External API** Hey there tech enthusiasts! š Are you facing a perplexing conundrum of making HTTP requests from Laravel to an external API? Fear not, I've got you covered! š In this blog post, we will delve
Set port for php artisan.php serve
# Setting a Custom Port for `php artisan serve` š So, you want to access different development sites on your localhost, each running on a different port? No worries! In this post, I'll walk you through the process of setting a custom port for `php artisa
How to delete all the rows in a table using Eloquent?
# šļø Blog Post: How to Delete All Rows in a Table using Eloquent? Are you struggling to figure out how to delete all the rows in a table using Eloquent in Laravel? Don't worry, you're not alone! It may seem like an easy task, but the syntax can be a bit
git ignore .env files not working
# Why is git ignore .env files not working? šš So you're trying to ignore your .env files with a .gitignore, but for some reason, it's not working as expected. Don't worry, you're not alone! This is a common issue that many developers face. In this blog
Laravel Eloquent "WHERE NOT IN"
# š Laravel Eloquent "WHERE NOT IN" š« Are you having trouble writing queries in Laravel Eloquent ORM? Don't worry, we've got you covered! In this blog post, we'll walk you through converting a common SQL query into Laravel Eloquent, specifically focusin
Laravel 5 - How to access image uploaded in storage within View?
# How to Access Images Uploaded in Laravel Storage within a View šø Are you facing an issue trying to render user avatars uploaded in Laravel storage? Don't worry, we've got you covered! In this blog post, we'll walk you through the steps to access and di
Automatically deleting related rows in Laravel (Eloquent ORM)
šš§š”šš„ Title: Say Goodbye to Related Rows Automatically in Laravel: Eloquent ORM Guide Intro: Are you tired of manually deleting related rows in Laravel every time you delete a parent row? š«š Well, fret no more! In this guide, we'll explore how to
Laravel redirect back to original destination after login
# **Redirecting Back to the Original Destination with Laravel** š· So you're building a web application with Laravel and you encounter this common scenario: a user clicks on a link or tries to access a protected page, Laravel's `auth` filter kicks in and







