@@ -44,21 +44,21 @@ |
||
| 44 | 44 | * |
| 45 | 45 | * @var array |
| 46 | 46 | */ |
| 47 | - protected $fillable = ['name', 'description', 'planner_id']; |
|
| 47 | + protected $fillable = [ 'name', 'description', 'planner_id' ]; |
|
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | 50 | * @var array |
| 51 | 51 | */ |
| 52 | - protected $hidden = ['planner', 'pivot']; |
|
| 52 | + protected $hidden = [ 'planner', 'pivot' ]; |
|
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | 55 | * @var array |
| 56 | 56 | */ |
| 57 | - protected $appends = ['planner_name']; |
|
| 57 | + protected $appends = [ 'planner_name' ]; |
|
| 58 | 58 | |
| 59 | 59 | public function getPlannerNameAttribute() |
| 60 | 60 | { |
| 61 | - if(is_object($this->planner) && $this->planner->exists) |
|
| 61 | + if (is_object($this->planner) && $this->planner->exists) |
|
| 62 | 62 | return $this->planner->name; |
| 63 | 63 | return null; |
| 64 | 64 | } |