Hoppas detta hjälper!
$data = DB::table("subscriptions")->where('business_id',$business_id)->orderBy('start_date', 'desc')->pluck('start_date')->first();
Detta ger dig det senaste startdatumet.
Hoppas detta hjälper!
$data = DB::table("subscriptions")->where('business_id',$business_id)->orderBy('start_date', 'desc')->pluck('start_date')->first();
Detta ger dig det senaste startdatumet.