last inserted data using latest in laravel code example Example: laravel get last record Model::latest()->first();