get all records Tricks

Browse latest tricks and tips on get all records.

How to get all records in Laravel?

You can simply use YourModel::all(); to select all records from table with Laravel Eloquent.Example Usage$posts= Post::all(); $posts->each(function($post){   //do ...
published on : 7 hours ago 12 Comments