select the latest record laravel code example Example: laravel get last record Model::latest()->first();