Closed tanhs closed 7 years ago
Did you have an active user when you tested saving and updating a model? If there's no user to be found the created_by
and updated_by
fields will remain null.
Other than that, difficult to assist here without a specific bug.
Same issue here. updated_by
column is not set when using update()
method
$updated_customer['name'] = 'John Doe';
$customer = Customer::findOrFail($request->id);
$customer->update($updated_customer);
I tried the following it doesn't work
User.php use Laratrust\Traits\LaratrustUserTrait; use Wildside\Userstamps\Userstamps;
class User extends Authenticatable { use Notifiable; use LaratrustUserTrait; use Userstamps;
...