Blog
Insights, guides, and best practices from the Laravel Company team.
Laravel Sanctum: How to configure the expiration date of the token?
# Laravel Sanctum: How to Configure the Expiration Date of the Token ## Context and Need In my `api` routes file, I've written the following code following the...
Get base_url using Jquery in Laravel
# Getting the Base URL in Laravel using jQuery: A Developer’s Guide As a senior developer working with modern frameworks like Laravel, understanding how to...
MacOs change default php version with Homebrew
# Migrating PHP Versions on macOS with Homebrew: A Developer's Guide As developers working within the robust ecosystem of PHP, managing different versions is...
Laravel 5.1 rename project
# The Right Way to Rename Your Laravel Project: Avoiding Nightmares As a senior developer, I’ve seen countless projects stumble over simple tasks like...
How can I save file from external url Laravel public directory
# How Can I Save Files from External URLs into the Laravel Public Directory? As a senior developer working with frameworks like Laravel, we frequently...
How to set the default value of an attribute on a Laravel model
Title: Mastering Model Default Attribute Values in Laravel Body: When working with Laravel, it's essential to understand how to manage default values for...
Eloquent: Query the length of field in Laravel
# Eloquent: Querying Field Lengths and Database Functions Correctly As developers working with Laravel and Eloquent, we often find ourselves needing to...
"https://packagist.org/packages.json" file could not be downloaded
# Troubleshooting Composer Download Failures: Resolving Proxy and Environment Issues for Laravel Development As a senior developer, I’ve seen countless...
Laravel default .htaccess file will not work
# Decoding the Laravel `.htaccess` Mystery: Why Your Routing Fails Dealing with a mysterious HTTP 500 error right after deployment, especially when fiddling...
Inertia.JS reload props after post request
# Inertia.js Reload Props After Post Requests: Decoding the Redirect Mystery As a senior developer working with modern full-stack frameworks, I often encounter...
WHERE IN array binding in DB::raw laravel 5.4
# Mastering Array Binding in `WHERE IN` Queries with `DB::raw()` in Laravel As a senior developer working with the Laravel ecosystem, we frequently encounter...
Base table or view not found: 1146 Table
# Solving the Dreaded Error: Base Table or View Not Found in Laravel As a senior developer working with the Laravel ecosystem, we frequently encounter...