Eloquent ORM Tricks

Browse latest tricks and tips on Eloquent ORM.

findorFail method in Laravel

How to use findOrFail() method?Sometimes you may wish to throw an exception if a specific record is not found. To do this, you may use the findOrFail method in Laravel findOrFail m ...
published on : 5 hours ago 12 Comments

Active Record Implementation in Laravel?

How to use Active Record in Laravel Active Record Implementation is an architectural pattern found in software engineering that stores in-memory object data in relational databases ...
published on : 3 hours ago 12 Comments