how to get the last element on db eloquent code example Example: eloquent using last() Model::latest()->first();