| 1 | <?php |
||
| 13 | class UserMigration extends Model |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * The attributes that are mass assignable. |
||
| 17 | * |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | protected $fillable = ['source_user_id','source_user','user_id']; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Get the user record associated with the invitation. |
||
| 24 | */ |
||
| 25 | public function user() |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Get the progress batch that this user migration belongs. |
||
| 32 | */ |
||
| 33 | public function batch() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Relation to eager loading by default. |
||
| 40 | * |
||
| 41 | * @var array |
||
| 42 | */ |
||
| 43 | public $with = ['user']; |
||
| 44 | } |
||
| 45 | |||
| 46 |