select all records Tricks

Browse latest tricks and tips on select 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 : 2 days ago 12 Comments