get last value from table where in laravel code example Example: laravel get last record Model::latest()->first();