You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to see whether a plan has been expanded or worked on already.
Another feature could be to show the date of the last update of any item in the plan. At the moment, the 'last updated' only shows the date when the plan properties have been last changed.
The text was updated successfully, but these errors were encountered:
AppServiceProvider.php
Added these lines into the boot() method:
Item::updated( function ($item) {
// when a user changes an item, we
// update the 'changer' field on the parent model (plan)
$plan = Plan::find($item->plan_id);
$plan->update(['changer' => Auth::user()->first_name]);
});
Item.php (the model)
added this line: protected $touches = ['plan'];
In order to see whether a plan has been expanded or worked on already.
Another feature could be to show the date of the last update of any item in the plan. At the moment, the 'last updated' only shows the date when the plan properties have been last changed.
The text was updated successfully, but these errors were encountered: