Blog

Insights, guides, and best practices from the Laravel Company team.

Laravel Company

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...

2026-06-29 Stefan Bogdanescu
Laravel Company

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...

2026-06-29 Stefan Bogdanescu
Laravel Company

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...

2026-06-29 Stefan Bogdanescu
Laravel Company

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...

2026-06-29 Stefan Bogdanescu
Laravel Company

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...

2026-06-29 Stefan Bogdanescu
Laravel Company

Using withTrashed with relationships in Eloquent

# Using `withTrashed()` with Relationships in Eloquent: Navigating Soft Deletes As developers working with relational databases, especially those utilizing...

2026-06-29 Stefan Bogdanescu
Laravel Company

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...

2026-06-29 Stefan Bogdanescu
Laravel Company

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...

2026-06-29 Stefan Bogdanescu
Laravel Company

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...

2026-06-29 Stefan Bogdanescu
Laravel Company

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...

2026-06-29 Stefan Bogdanescu
Laravel Company

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...

2026-06-29 Stefan Bogdanescu
Laravel Company

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...

2026-06-29 Stefan Bogdanescu