Blog

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

Laravel Company

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

2026-06-29 Stefan Bogdanescu
Laravel Company

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

2026-06-29 Stefan Bogdanescu
Laravel Company

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

2026-06-29 Stefan Bogdanescu
Laravel Company

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

2026-06-29 Stefan Bogdanescu
Laravel Company

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

2026-06-29 Stefan Bogdanescu
Laravel Company

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

2026-06-29 Stefan Bogdanescu
Laravel Company

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

2026-06-29 Stefan Bogdanescu
Laravel Company

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

2026-06-29 Stefan Bogdanescu
Laravel Company

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

2026-06-29 Stefan Bogdanescu
Laravel Company

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

2026-06-29 Stefan Bogdanescu
Laravel Company
SMTP Email Marketing

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.

2026-06-26 Sadman
What Public Sector CTOs Need to Know About NIS2 Essential Entity Requirements (2026)
NIS2 EU Compliance

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.

March 30, 2026 Stefan Bogdanescu