order by date of created at and order by second column laravel 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}}