right way to get first record code example
Example: right way to get first record
$user = DB::table('users')
->latest()
->first();
$user = DB::table('users')
->latest()
->first();