Blog

Page 307 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for 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

Published on September 2, 2023

# 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

Cover Image for Doing HTTP requests FROM Laravel to an external API
http

Doing HTTP requests FROM Laravel to an external API

Published on September 2, 2023

šŸ” **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

Cover Image for Set port for php artisan.php serve

Set port for php artisan.php serve

Published on September 2, 2023

# 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

Cover Image for How to delete all the rows in a table using Eloquent?

How to delete all the rows in a table using Eloquent?

Published on September 2, 2023

# šŸ—’ļø 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

Cover Image for git ignore .env files not working

git ignore .env files not working

Published on September 2, 2023

# 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

Cover Image for Laravel Eloquent "WHERE NOT IN"

Laravel Eloquent "WHERE NOT IN"

Published on September 2, 2023

# šŸ“š 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

Cover Image for Laravel 5 - How to access image uploaded in storage within View?

Laravel 5 - How to access image uploaded in storage within View?

Published on September 2, 2023

# 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

Cover Image for Automatically deleting related rows in Laravel (Eloquent ORM)

Automatically deleting related rows in Laravel (Eloquent ORM)

Published on September 2, 2023

šŸ“šŸ§šŸ’”šŸš€šŸ’„ 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

Cover Image for Laravel redirect back to original destination after login
redirect

Laravel redirect back to original destination after login

Published on September 2, 2023

# **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

Blog | Matheus Mello