how to get all data from database table using model in laravel code example Example: get all data eloquent laravel Blog::all(); //example usage. $posts = Blog::all();