get last element laravel eloquent code example Example: eloquent using last() Model::latest()->first();