Blog
Insights, guides, and best practices from the Laravel Company team.
Laravel: Get base URL
Title: Get Base URL in Laravel: A Comprehensive Guide for Developers Introduction When developing applications using the popular PHP framework, Laravel, it's...
How to upload files in Laravel directly into public folder?
Title: Efficiently Upload Files in Laravel Using Public Folder - A Comprehensive Guide Body: In situations where the hosting server doesn't support links, or...
Edit and Updating Data in Laravel
# Mastering Data Manipulation in Laravel: A Deep Dive into Edit and Update Operations As a senior developer working with the Laravel ecosystem, one of the most...
Set SQLite as database for unit testing in Laravel 5.1
# Setting SQLite as the Database for Unit Testing in Laravel 5.1: A Developer's Guide When diving into unit testing with Laravel, itâs natural to look for...
Laravel 8 jetstream stack inertia. Redirect to Home after Login, instead of users choice
# Laravel Jetstream & Inertia Debugging: Mastering Redirects in Authentication Flows Dealing with authentication redirects, especially when integrating modern...
Using withTrashed with relationships in Eloquent
# Using `withTrashed()` with Relationships in Eloquent: Navigating Soft Deletes As developers working with relational databases, especially those utilizing...
Get the subdomain in a subdomain-route (Laravel)
# Get the Subdomain in a Subdomain-Route (Laravel) Without Messy Workarounds Building dynamic applications where the structure of your URLs mirrors your...
laravel: Relationship method must return an object of type Illuminate\Database\Eloquent\Relations\Relation
# Deciphering the `LogicException`: Why Your Eloquent Relationships Are Failing As a senior developer working with Laravel, we spend a lot of time wrestling...
Laravel - Connection could not be established with host smtp.googlemail.com :stream_socket_client(): unable to connect
# Laravel SMTP Connection Failure: Troubleshooting `unable to connect` with Gmail Sending emails reliably is a cornerstone of almost every application, and...
SQLSTATE[42S02]: Base table or view not found: 1932 Table 'blog.categories' doesn't exist in engine (SQL: select * from `categories`)
# Decoding the Dreaded SQLSTATE[42S02]: Fixing Base Table Not Found Errors in Laravel As a senior developer, Iâve seen countless frustrations stemming from...
laravel 8 foreign key
# Mastering Foreign Keys in Laravel Migrations: Solving the Dreaded Error 1215 As a senior developer working with the Laravel ecosystem, we frequently run into...
Laravel scope - pass 2 parameters to scope
# Mastering Laravel Scopes: Passing Multiple Parameters for Complex Filtering As senior developers working with Laravel and Eloquent, we often encounter...