this year data get in laravel order tabel 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}}