@@ -6,9 +6,9 @@ |
||
| 6 | 6 | |
| 7 | 7 | //si no esta declarada (function_exists('nom_funcio')) la declaro |
| 8 | 8 | |
| 9 | -if(! function_exists('initialize_task_permissions')){ |
|
| 9 | +if ( ! function_exists('initialize_task_permissions')) { |
|
| 10 | 10 | |
| 11 | - function initialize_task_permissions(){ |
|
| 11 | + function initialize_task_permissions() { |
|
| 12 | 12 | //Permission::create(['name'=>'list-tasks']); |
| 13 | 13 | //Crea només si no existeix |
| 14 | 14 | Permission::firstOrCreate(['name'=>'list-tasks']); |
@@ -52,8 +52,8 @@ discard block |
||
| 52 | 52 | protected function mapWebRoutes() |
| 53 | 53 | { |
| 54 | 54 | Route::middleware('web') |
| 55 | - ->namespace($this->namespace) |
|
| 56 | - ->group(base_path('routes/web.php')); |
|
| 55 | + ->namespace($this->namespace) |
|
| 56 | + ->group(base_path('routes/web.php')); |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |
@@ -66,8 +66,8 @@ discard block |
||
| 66 | 66 | protected function mapApiRoutes() |
| 67 | 67 | { |
| 68 | 68 | Route::prefix('api') |
| 69 | - ->middleware('api') |
|
| 70 | - ->namespace($this->namespace) |
|
| 71 | - ->group(base_path('routes/api.php')); |
|
| 69 | + ->middleware('api') |
|
| 70 | + ->namespace($this->namespace) |
|
| 71 | + ->group(base_path('routes/api.php')); |
|
| 72 | 72 | } |
| 73 | 73 | } |
@@ -6,5 +6,5 @@ |
||
| 6 | 6 | |
| 7 | 7 | class Task extends Model |
| 8 | 8 | { |
| 9 | - protected $fillable = ['name','user_id']; |
|
| 9 | + protected $fillable = ['name', 'user_id']; |
|
| 10 | 10 | } |