@@ -65,7 +65,7 @@ |
||
| 65 | 65 | return \Response::json(['errors' => [$errors]], $exception-> getStatusCode()); |
| 66 | 66 | } elseif ($exception instanceof \Illuminate\Validation\ValidationException) {
|
| 67 | 67 | return \Response::json(['errors' => $exception-> errors()], 422); |
| 68 | - } elseif (! $exception instanceof \Symfony\Component\ErrorHandler\Error\FatalError) {
|
|
| 68 | + } elseif ( ! $exception instanceof \Symfony\Component\ErrorHandler\Error\FatalError) {
|
|
| 69 | 69 | return parent::render($request, $exception); |
| 70 | 70 | } |
| 71 | 71 | } |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('reports', function (Blueprint $table) { |
|
| 15 | + Schema::create('reports', function(Blueprint $table) { |
|
| 16 | 16 | increments('id'); |
| 17 | 17 | $table->string('report_name', 100); |
| 18 | 18 | $table->string('view_name', 100); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('users', function (Blueprint $table) { |
|
| 15 | + Schema::create('users', function(Blueprint $table) { |
|
| 16 | 16 | increments('id'); |
| 17 | 17 | $table->string('profile_picture', 150)->nullable(); |
| 18 | 18 | $table->string('name', 100)->nullable(); |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | | |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | -Route::group(['prefix' => 'users'], function () { |
|
| 16 | +Route::group(['prefix' => 'users'], function() { |
|
| 17 | 17 | |
| 18 | 18 | Route::get('/', 'UserController@index'); |
| 19 | 19 | Route::get('{id}', 'UserController@show'); |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | Route::patch('unblock/{id}', 'UserController@unblock'); |
| 26 | 26 | Route::patch('assign/roles/{id}', 'UserController@assignRoles'); |
| 27 | 27 | |
| 28 | - Route::group(['prefix' => 'account'], function () { |
|
| 28 | + Route::group(['prefix' => 'account'], function() { |
|
| 29 | 29 | |
| 30 | 30 | Route::get('my', 'UserController@account'); |
| 31 | 31 | Route::get('logout', 'UserController@logout'); |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('permissions', function (Blueprint $table) { |
|
| 15 | + Schema::create('permissions', function(Blueprint $table) { |
|
| 16 | 16 | increments('id'); |
| 17 | 17 | $table->string('name', 100); |
| 18 | 18 | $table->string('model', 100); |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | $table->timestamps(); |
| 21 | 21 | $table->unique(array('name', 'model')); |
| 22 | 22 | }); |
| 23 | - Schema::create('permission_role', function (Blueprint $table) { |
|
| 23 | + Schema::create('permission_role', function(Blueprint $table) { |
|
| 24 | 24 | increments('id'); |
| 25 | 25 | $table->unsignedInteger('role_id'); |
| 26 | 26 | $table->unsignedInteger('permission_id'); |
@@ -12,14 +12,14 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('roles', function (Blueprint $table) { |
|
| 15 | + Schema::create('roles', function(Blueprint $table) { |
|
| 16 | 16 | increments('id'); |
| 17 | 17 | $table->string('name', 100)->unique(); |
| 18 | 18 | $table->softDeletes(); |
| 19 | 19 | $table->timestamps(); |
| 20 | 20 | }); |
| 21 | 21 | |
| 22 | - Schema::create('role_user', function (Blueprint $table) { |
|
| 22 | + Schema::create('role_user', function(Blueprint $table) { |
|
| 23 | 23 | increments('id'); |
| 24 | 24 | $table->unsignedInteger('user_id'); |
| 25 | 25 | $table->unsignedInteger('role_id'); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('jobs', function (Blueprint $table) { |
|
| 16 | + Schema::create('jobs', function(Blueprint $table) { |
|
| 17 | 17 | $table->bigincrements('id')->primary(); |
| 18 | 18 | $table->string('queue'); |
| 19 | 19 | $table->longText('payload'); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('failed_jobs', function (Blueprint $table) { |
|
| 16 | + Schema::create('failed_jobs', function(Blueprint $table) { |
|
| 17 | 17 | $table->bigincrements('id')->primary(); |
| 18 | 18 | $table->text('connection'); |
| 19 | 19 | $table->text('queue'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('push_notification_devices', function (Blueprint $table) { |
|
| 15 | + Schema::create('push_notification_devices', function(Blueprint $table) { |
|
| 16 | 16 | increments('id'); |
| 17 | 17 | $table->string('device_token'); |
| 18 | 18 | $table->unsignedInteger('user_id'); |