Closed andrechalom closed 6 years ago
You have make your user_id
field nullable.
Then call JobStatus::find($this->statusId)->update(['user_id' => 1])
by the end of the constructor of your Job.
You can now customize the model and initial database migration since v0.1.11
Is is possible to associate dispatched jobs with the dispatching user? I would like to display to a logged in user the list of jobs he has dispatched, but not the jobs belonging to other users. I've tried adding a "user_id" column in the jobs_statuses table, but creating a job fails with
Field 'user_id' doesn't have a default value
...