1 year ago

How to perform simple audit trail in simple CRUD laravel

Posted 1 year ago by copain

how to get the username of the last person who update the form,using the (updated_at) timestamp in laravel and what is the best logic or approach to do?is it possible to use in blade only? or should i need to put the code in my controller?

Example: Updated:13-Jun-2018 UpdatedBy: Username

currently i can only get the updated date by using this code in my blade

Updated:{{ date('d-M-Y', strtotime($leads->updated_at))}}

Please sign in or create an account to participate in this conversation.