Laravel One to One Eloquent Relationship
Laravel comes with a great feature called eloquent. It is an object-relational mapper (ORM) that makes it easy for you to interact with the database. Using eloquent, each database has …
Laravel comes with a great feature called eloquent. It is an object-relational mapper (ORM) that makes it easy for you to interact with the database. Using eloquent, each database has …
In this tutorial, we will learn laravel eloquent methods firstOrNew(), firstOrCreate() and updateOrCreate(). These methods are very helpful but most users are not familiar with them and don’t know how …
In this tutorial, we will learn how you can use where condition in laravel eloquent. It is very easy and short as compared to SQL raw query. We will also …