Extend Eloquent Model with created_by, updated_by, deleted_by
i'm new at Laravel, and now i'm building my first app.
My app is a database to store addresses an related content to each address (Companies). I would like to have a Authentication via Laravel - thats the next step.
But now i need to know, how i can extend my Company Model (class Company extends Eloquent) - what uses timestamps - with three columns (created_by, updated_by, deleted_by).
I allready have this columns created with my migration-skript. But now i need to update this columns when the desired action is called (create, update, delete), then the username should also stored...
Does somebody know, how to achieve that?
best regards, Andy
Want to reply to this thread?Login with github.