Laravel mendapatkan rekor terakhir
Model::latest()->first();
TheDutchScorpion
Model::latest()->first();
Dogs::latest()->take(5)->get();
echo date('m');
$fromDate = Carbon::now()->subMonth()->startOfMonth()->toDateString();
$tillDate = Carbon::now()->subMonth()->endOfMonth()->toDateString();
$revenueLastMonth = Callback::whereBetween('created_at',[$fromDate,$tillDate])->get();