Difference Between Laravel Collection and stdClass

Explore the nuances between Laravel Collections and stdClass objects in Laravel development with code snippets illustrating their unique features and applications. Read more

Laravel Eloquent ORM: A Beginner’s Guide

Laravel Eloquent ORM: A Beginner's Guide
Dive into Laravel's Eloquent ORM with this comprehensive beginner's guide. Explore models, migrations, controllers, and Blade templates to master database interactions in your Laravel applications. Read more

How to get Database Name in laravel

To get Database Name in laravel, there are various ways, here are few of them you can found to get it easily in laravel using DB/Config. Read more

How to check if foreign key exists in laravel

To check if foreign key exists in laravel is a common issue working with the foreign key to check hasForeignKey('table','column') exists or not in a boolean response mostly. Read more

Last Executed Query in Laravel

Last Executed Query in Laravel, let’s enable the query log by taking the help of Laravel query builder’s log feature for its queries by using. Read more

Laravel eloquent guarded vs fillable

fillable vs guarded
Fillable vs Guarded attributes are used to work with the Laravel Eloquent ORM system to create the possibilities for the mass-assignable... Read more