Blog
Insights, guides, and best practices from the Laravel Company team.
Trying to get property 'id' of non-object
Title: Understanding and Resolving "Trying to get property 'id' of non-object" Error in PHP Code Body: When working on an application that uses Laravel, you...
How I can generate the unique ID in laravel?
Title: Efficiently Generating Small Unique IDs (9 Char Max) in Laravel Projects Body: Laravel is one of the most popular PHP frameworks available today,...
Laravel - How to get year property of date
Title: Retrieving the Year from a Date in Laravel Applications Body: I'm sure you must have come across instances where you need to work with dates in your...
How to save in a polymorphic relationship in Laravel?
Title: Understanding and Implementing Polymorphic Relationships in Laravel for Saving Records Efficiently Body: Savvy developers often encounter complex use...
Get array of Eloquent model's relations
Title: Effortlessly Accessing Model Relations in Laravel Body: When working with Eloquent models in Laravel, it's crucial to understand how to access the...
Laravel 5.3 date validator: equal to or after start_date
Title: Extending Date Validation for Laravel 5.3 Events with Custom Rule or Alternative Methods Body: In developing your application using Laravel 5.3, you may...
How to generate unique random value for each user in laravel and add it to database
Title: Efficiently Generating Unique Random Values for Users within a Laravel Application Body: If you're working on an event organization website that...
redirect to 404 page automatically at laravel 5.4
Title: Automatically Redirecting to a Custom 404 Page in Laravel 5.4 Body: Creating your own user-friendly website on Laravel can be a rewarding experience....
How to execute external shell commands from laravel controller?
How to Execute External Shell Commands from Laravel Controller When working with Laravel, it is often necessary to execute external shell commands directly in...
Laravel string validation to allow empty strings
Title: Laravel String Validation for Empty Strings - A Comprehensive Guide Introduction: In Laravel, data validation is crucial to ensure that the information...
What is the best SMTP server for ensuring bulk marketing emails reach the Gmail inbox instead of the spam folder?
Explore why bulk marketing emails land in spam even with reputable SMTP providers like AWS SES and ServerSMTP, and learn actionable steps to improve Gmail inbox placement.
What Public Sector CTOs Need to Know About NIS2 Essential Entity Requirements (2026)
NIS2 directive is reshaping EU cybersecurity requirements for essential entities. Learn what CTOs need to know about supply chain compliance and choosing certified IT vendors.