laravel order by date desc code example
Example 1: $tmpmembershipfee = MembershipFee::orderBy('created_at','DESC') ->first();
$tmpmembershipfee = MembershipFee::orderBy('created_at','DESC')->first();
Example 2: $tmpmembershipfee = MembershipFee::orderBy('created_at','DESC') ->first();
data:{'User':{'id':id}}