@@ -6,31 +6,31 @@ |
||
| 6 | 6 | |
| 7 | 7 | class CreateUsersTable extends Migration |
| 8 | 8 | { |
| 9 | - /** |
|
| 10 | - * Run the migrations. |
|
| 11 | - * |
|
| 12 | - * @return void |
|
| 13 | - */ |
|
| 14 | - public function up() |
|
| 15 | - { |
|
| 16 | - Schema::create('users', function (Blueprint $table) { |
|
| 17 | - $table->bigIncrements('id'); |
|
| 18 | - $table->string('name'); |
|
| 19 | - $table->string('email')->unique(); |
|
| 20 | - $table->timestamp('email_verified_at')->nullable(); |
|
| 21 | - $table->string('password'); |
|
| 22 | - $table->rememberToken(); |
|
| 23 | - $table->timestamps(); |
|
| 24 | - }); |
|
| 25 | - } |
|
| 9 | + /** |
|
| 10 | + * Run the migrations. |
|
| 11 | + * |
|
| 12 | + * @return void |
|
| 13 | + */ |
|
| 14 | + public function up() |
|
| 15 | + { |
|
| 16 | + Schema::create('users', function (Blueprint $table) { |
|
| 17 | + $table->bigIncrements('id'); |
|
| 18 | + $table->string('name'); |
|
| 19 | + $table->string('email')->unique(); |
|
| 20 | + $table->timestamp('email_verified_at')->nullable(); |
|
| 21 | + $table->string('password'); |
|
| 22 | + $table->rememberToken(); |
|
| 23 | + $table->timestamps(); |
|
| 24 | + }); |
|
| 25 | + } |
|
| 26 | 26 | |
| 27 | - /** |
|
| 28 | - * Reverse the migrations. |
|
| 29 | - * |
|
| 30 | - * @return void |
|
| 31 | - */ |
|
| 32 | - public function down() |
|
| 33 | - { |
|
| 34 | - Schema::dropIfExists('users'); |
|
| 35 | - } |
|
| 27 | + /** |
|
| 28 | + * Reverse the migrations. |
|
| 29 | + * |
|
| 30 | + * @return void |
|
| 31 | + */ |
|
| 32 | + public function down() |
|
| 33 | + { |
|
| 34 | + Schema::dropIfExists('users'); |
|
| 35 | + } |
|
| 36 | 36 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('users', function (Blueprint $table) { |
|
| 16 | + Schema::create('users', function(Blueprint $table) { |
|
| 17 | 17 | $table->bigIncrements('id'); |
| 18 | 18 | $table->string('name'); |
| 19 | 19 | $table->string('email')->unique(); |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | public static function boot() |
| 51 | 51 | { |
| 52 | 52 | // allow Super Admin full access |
| 53 | - Gate::after(function ($user, $ability) { |
|
| 53 | + Gate::after(function($user, $ability) { |
|
| 54 | 54 | return $user->hasRole('Super Admin'); |
| 55 | 55 | }); |
| 56 | 56 | } |
@@ -21,12 +21,12 @@ |
||
| 21 | 21 | ]; |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | - return $ret? [ |
|
| 25 | - __('DASHBOARD') => count($ret) > 1? [ |
|
| 24 | + return $ret ? [ |
|
| 25 | + __('DASHBOARD') => count($ret) > 1 ? [ |
|
| 26 | 26 | 'access' => true, |
| 27 | 27 | 'group' => $ret, |
| 28 | 28 | 'weight' => -10000 |
| 29 | - ]: array_merge(reset($ret), ['weight' => -10000]), |
|
| 30 | - ]: []; |
|
| 29 | + ] : array_merge(reset($ret), ['weight' => -10000]), |
|
| 30 | + ] : []; |
|
| 31 | 31 | } |
| 32 | 32 | } |
| 33 | 33 | \ No newline at end of file |