eloquent query for storing last entries in laravel code example
Example 1: laravel get last record
Model::latest()->first();
Example 2: eloquent using last()
Model::latest()->first();
Model::latest()->first();
Model::latest()->first();