@@ -5,32 +5,32 @@ |
||
5 | 5 | |
6 | 6 | class RoleRepository extends BaseRepository |
7 | 7 | { |
8 | - /** |
|
9 | - * Init new object. |
|
10 | - * |
|
11 | - * @param Role $model |
|
12 | - * @return void |
|
13 | - */ |
|
14 | - public function __construct(Role $model) |
|
15 | - { |
|
16 | - parent::__construct($model); |
|
17 | - } |
|
8 | + /** |
|
9 | + * Init new object. |
|
10 | + * |
|
11 | + * @param Role $model |
|
12 | + * @return void |
|
13 | + */ |
|
14 | + public function __construct(Role $model) |
|
15 | + { |
|
16 | + parent::__construct($model); |
|
17 | + } |
|
18 | 18 | |
19 | - /** |
|
20 | - * Assign the given permission ids to the given role. |
|
21 | - * |
|
22 | - * @param integer $roleId |
|
23 | - * @param array $permissionIds |
|
24 | - * @return object |
|
25 | - */ |
|
26 | - public function assignPermissions($roleId, $permissionIds) |
|
27 | - { |
|
28 | - \DB::transaction(function () use ($roleId, $permissionIds) { |
|
29 | - $role = $this->find($roleId); |
|
30 | - $role->permissions()->detach(); |
|
31 | - $role->permissions()->attach($permissionIds); |
|
32 | - }); |
|
19 | + /** |
|
20 | + * Assign the given permission ids to the given role. |
|
21 | + * |
|
22 | + * @param integer $roleId |
|
23 | + * @param array $permissionIds |
|
24 | + * @return object |
|
25 | + */ |
|
26 | + public function assignPermissions($roleId, $permissionIds) |
|
27 | + { |
|
28 | + \DB::transaction(function () use ($roleId, $permissionIds) { |
|
29 | + $role = $this->find($roleId); |
|
30 | + $role->permissions()->detach(); |
|
31 | + $role->permissions()->attach($permissionIds); |
|
32 | + }); |
|
33 | 33 | |
34 | - return $this->find($roleId); |
|
35 | - } |
|
34 | + return $this->find($roleId); |
|
35 | + } |
|
36 | 36 | } |
@@ -25,7 +25,7 @@ |
||
25 | 25 | */ |
26 | 26 | public function assignPermissions($roleId, $permissionIds) |
27 | 27 | { |
28 | - \DB::transaction(function () use ($roleId, $permissionIds) { |
|
28 | + \DB::transaction(function() use ($roleId, $permissionIds) { |
|
29 | 29 | $role = $this->find($roleId); |
30 | 30 | $role->permissions()->detach(); |
31 | 31 | $role->permissions()->attach($permissionIds); |
@@ -6,69 +6,69 @@ |
||
6 | 6 | class RoleObserver |
7 | 7 | { |
8 | 8 | |
9 | - public function saving($model) |
|
10 | - { |
|
11 | - // |
|
12 | - } |
|
9 | + public function saving($model) |
|
10 | + { |
|
11 | + // |
|
12 | + } |
|
13 | 13 | |
14 | - public function saved($model) |
|
15 | - { |
|
16 | - // |
|
17 | - } |
|
14 | + public function saved($model) |
|
15 | + { |
|
16 | + // |
|
17 | + } |
|
18 | 18 | |
19 | - public function creating($model) |
|
20 | - { |
|
21 | - // |
|
22 | - } |
|
19 | + public function creating($model) |
|
20 | + { |
|
21 | + // |
|
22 | + } |
|
23 | 23 | |
24 | - public function created($model) |
|
25 | - { |
|
26 | - // |
|
27 | - } |
|
24 | + public function created($model) |
|
25 | + { |
|
26 | + // |
|
27 | + } |
|
28 | 28 | |
29 | - /** |
|
30 | - * Prevent updating of the admin role. |
|
31 | - * |
|
32 | - * @param object $model the model beign updated. |
|
33 | - * @return void |
|
34 | - */ |
|
35 | - public function updating($model) |
|
36 | - { |
|
37 | - if ($model->getOriginal('name') == 'Admin') { |
|
38 | - \ErrorHandler::noPermissions(); |
|
39 | - } |
|
40 | - } |
|
29 | + /** |
|
30 | + * Prevent updating of the admin role. |
|
31 | + * |
|
32 | + * @param object $model the model beign updated. |
|
33 | + * @return void |
|
34 | + */ |
|
35 | + public function updating($model) |
|
36 | + { |
|
37 | + if ($model->getOriginal('name') == 'Admin') { |
|
38 | + \ErrorHandler::noPermissions(); |
|
39 | + } |
|
40 | + } |
|
41 | 41 | |
42 | - public function updated($model) |
|
43 | - { |
|
44 | - // |
|
45 | - } |
|
42 | + public function updated($model) |
|
43 | + { |
|
44 | + // |
|
45 | + } |
|
46 | 46 | |
47 | - /** |
|
48 | - * Prevent deleting the admin role. |
|
49 | - * |
|
50 | - * @param object $model the delted model. |
|
51 | - * @return void |
|
52 | - */ |
|
53 | - public function deleting($model) |
|
54 | - { |
|
55 | - if ($model->getOriginal('name') == 'Admin') { |
|
56 | - \ErrorHandler::noPermissions(); |
|
57 | - } |
|
58 | - } |
|
47 | + /** |
|
48 | + * Prevent deleting the admin role. |
|
49 | + * |
|
50 | + * @param object $model the delted model. |
|
51 | + * @return void |
|
52 | + */ |
|
53 | + public function deleting($model) |
|
54 | + { |
|
55 | + if ($model->getOriginal('name') == 'Admin') { |
|
56 | + \ErrorHandler::noPermissions(); |
|
57 | + } |
|
58 | + } |
|
59 | 59 | |
60 | - public function deleted($model) |
|
61 | - { |
|
62 | - // |
|
63 | - } |
|
60 | + public function deleted($model) |
|
61 | + { |
|
62 | + // |
|
63 | + } |
|
64 | 64 | |
65 | - public function restoring($model) |
|
66 | - { |
|
67 | - // |
|
68 | - } |
|
65 | + public function restoring($model) |
|
66 | + { |
|
67 | + // |
|
68 | + } |
|
69 | 69 | |
70 | - public function restored($model) |
|
71 | - { |
|
72 | - // |
|
73 | - } |
|
70 | + public function restored($model) |
|
71 | + { |
|
72 | + // |
|
73 | + } |
|
74 | 74 | } |
@@ -6,42 +6,42 @@ |
||
6 | 6 | class Role extends Model |
7 | 7 | { |
8 | 8 | |
9 | - use SoftDeletes; |
|
10 | - protected $table = 'roles'; |
|
11 | - protected $dates = ['created_at', 'updated_at', 'deleted_at']; |
|
12 | - protected $hidden = ['deleted_at']; |
|
13 | - protected $guarded = ['id']; |
|
14 | - protected $fillable = ['name']; |
|
15 | - public $searchable = ['name']; |
|
16 | - |
|
17 | - public function getCreatedAtAttribute($value) |
|
18 | - { |
|
19 | - return \Carbon\Carbon::parse($value)->tz(\Session::get('time-zone'))->toDateTimeString(); |
|
20 | - } |
|
21 | - |
|
22 | - public function getUpdatedAtAttribute($value) |
|
23 | - { |
|
24 | - return \Carbon\Carbon::parse($value)->tz(\Session::get('time-zone'))->toDateTimeString(); |
|
25 | - } |
|
26 | - |
|
27 | - public function getDeletedAtAttribute($value) |
|
28 | - { |
|
29 | - return \Carbon\Carbon::parse($value)->tz(\Session::get('time-zone'))->toDateTimeString(); |
|
30 | - } |
|
31 | - |
|
32 | - public function users() |
|
33 | - { |
|
34 | - return $this->belongsToMany('App\Modules\Users\AclUser', 'users_roles', 'role_id', 'user_id')->whereNull('users_roles.deleted_at')->withTimestamps(); |
|
35 | - } |
|
36 | - |
|
37 | - public function permissions() |
|
38 | - { |
|
39 | - return $this->belongsToMany('App\Modules\Permissions\Permission', 'roles_permissions', 'role_id', 'permission_id')->whereNull('roles_permissions.deleted_at')->withTimestamps(); |
|
40 | - } |
|
41 | - |
|
42 | - public static function boot() |
|
43 | - { |
|
44 | - parent::boot(); |
|
45 | - Role::observe(\App::make('App\Modules\Roles\ModelObservers\RoleObserver')); |
|
46 | - } |
|
9 | + use SoftDeletes; |
|
10 | + protected $table = 'roles'; |
|
11 | + protected $dates = ['created_at', 'updated_at', 'deleted_at']; |
|
12 | + protected $hidden = ['deleted_at']; |
|
13 | + protected $guarded = ['id']; |
|
14 | + protected $fillable = ['name']; |
|
15 | + public $searchable = ['name']; |
|
16 | + |
|
17 | + public function getCreatedAtAttribute($value) |
|
18 | + { |
|
19 | + return \Carbon\Carbon::parse($value)->tz(\Session::get('time-zone'))->toDateTimeString(); |
|
20 | + } |
|
21 | + |
|
22 | + public function getUpdatedAtAttribute($value) |
|
23 | + { |
|
24 | + return \Carbon\Carbon::parse($value)->tz(\Session::get('time-zone'))->toDateTimeString(); |
|
25 | + } |
|
26 | + |
|
27 | + public function getDeletedAtAttribute($value) |
|
28 | + { |
|
29 | + return \Carbon\Carbon::parse($value)->tz(\Session::get('time-zone'))->toDateTimeString(); |
|
30 | + } |
|
31 | + |
|
32 | + public function users() |
|
33 | + { |
|
34 | + return $this->belongsToMany('App\Modules\Users\AclUser', 'users_roles', 'role_id', 'user_id')->whereNull('users_roles.deleted_at')->withTimestamps(); |
|
35 | + } |
|
36 | + |
|
37 | + public function permissions() |
|
38 | + { |
|
39 | + return $this->belongsToMany('App\Modules\Permissions\Permission', 'roles_permissions', 'role_id', 'permission_id')->whereNull('roles_permissions.deleted_at')->withTimestamps(); |
|
40 | + } |
|
41 | + |
|
42 | + public static function boot() |
|
43 | + { |
|
44 | + parent::boot(); |
|
45 | + Role::observe(\App::make('App\Modules\Roles\ModelObservers\RoleObserver')); |
|
46 | + } |
|
47 | 47 | } |
@@ -6,15 +6,15 @@ |
||
6 | 6 | |
7 | 7 | class ClearDataSeeder extends Seeder |
8 | 8 | { |
9 | - /** |
|
10 | - * Run the database seeds. |
|
11 | - * |
|
12 | - * @return void |
|
13 | - */ |
|
14 | - public function run() |
|
15 | - { |
|
16 | - $permissions = \DB::table('permissions')->whereIn('model', ['oauthClient']); |
|
17 | - \DB::table('roles_permissions')->whereIn('permission_id', $permissions->pluck('id'))->delete(); |
|
18 | - $permissions->delete(); |
|
19 | - } |
|
9 | + /** |
|
10 | + * Run the database seeds. |
|
11 | + * |
|
12 | + * @return void |
|
13 | + */ |
|
14 | + public function run() |
|
15 | + { |
|
16 | + $permissions = \DB::table('permissions')->whereIn('model', ['oauthClient']); |
|
17 | + \DB::table('roles_permissions')->whereIn('permission_id', $permissions->pluck('id'))->delete(); |
|
18 | + $permissions->delete(); |
|
19 | + } |
|
20 | 20 | } |
@@ -6,27 +6,27 @@ |
||
6 | 6 | |
7 | 7 | class AssignRelationsSeeder extends Seeder |
8 | 8 | { |
9 | - /** |
|
10 | - * Run the database seeds. |
|
11 | - * |
|
12 | - * @return void |
|
13 | - */ |
|
14 | - public function run() |
|
15 | - { |
|
16 | - $adminRoleId = \DB::table('roles')->where('name', 'admin')->select('id')->first()->id; |
|
9 | + /** |
|
10 | + * Run the database seeds. |
|
11 | + * |
|
12 | + * @return void |
|
13 | + */ |
|
14 | + public function run() |
|
15 | + { |
|
16 | + $adminRoleId = \DB::table('roles')->where('name', 'admin')->select('id')->first()->id; |
|
17 | 17 | |
18 | - /** |
|
19 | - * Assign the permissions to the admin role. |
|
20 | - */ |
|
21 | - \DB::table('permissions')->orderBy('created_at', 'asc')->whereIn('model', ['oauthClient'])->each(function ($permission) use ($adminRoleId) { |
|
22 | - \DB::table('roles_permissions')->insert( |
|
23 | - [ |
|
24 | - 'permission_id' => $permission->id, |
|
25 | - 'role_id' => $adminRoleId, |
|
26 | - 'created_at' => \DB::raw('NOW()'), |
|
27 | - 'updated_at' => \DB::raw('NOW()') |
|
28 | - ] |
|
29 | - ); |
|
30 | - }); |
|
31 | - } |
|
18 | + /** |
|
19 | + * Assign the permissions to the admin role. |
|
20 | + */ |
|
21 | + \DB::table('permissions')->orderBy('created_at', 'asc')->whereIn('model', ['oauthClient'])->each(function ($permission) use ($adminRoleId) { |
|
22 | + \DB::table('roles_permissions')->insert( |
|
23 | + [ |
|
24 | + 'permission_id' => $permission->id, |
|
25 | + 'role_id' => $adminRoleId, |
|
26 | + 'created_at' => \DB::raw('NOW()'), |
|
27 | + 'updated_at' => \DB::raw('NOW()') |
|
28 | + ] |
|
29 | + ); |
|
30 | + }); |
|
31 | + } |
|
32 | 32 | } |
@@ -18,7 +18,7 @@ |
||
18 | 18 | /** |
19 | 19 | * Assign the permissions to the admin role. |
20 | 20 | */ |
21 | - \DB::table('permissions')->orderBy('created_at', 'asc')->whereIn('model', ['oauthClient'])->each(function ($permission) use ($adminRoleId) { |
|
21 | + \DB::table('permissions')->orderBy('created_at', 'asc')->whereIn('model', ['oauthClient'])->each(function($permission) use ($adminRoleId) { |
|
22 | 22 | \DB::table('roles_permissions')->insert( |
23 | 23 | [ |
24 | 24 | 'permission_id' => $permission->id, |
@@ -6,35 +6,35 @@ |
||
6 | 6 | |
7 | 7 | class CreateOauthClientsTable extends Migration |
8 | 8 | { |
9 | - /** |
|
10 | - * Run the migrations. |
|
11 | - * |
|
12 | - * @return void |
|
13 | - */ |
|
14 | - public function up() |
|
15 | - { |
|
16 | - Schema::create('oauth_clients', function (Blueprint $table) { |
|
17 | - $table->increments('id'); |
|
18 | - $table->integer('user_id')->nullable(); |
|
19 | - $table->string('name'); |
|
20 | - $table->string('secret', 100); |
|
21 | - $table->text('redirect'); |
|
22 | - $table->boolean('personal_access_client')->default(0); |
|
23 | - $table->boolean('password_client')->default(0); |
|
24 | - $table->boolean('revoked')->default(0); |
|
25 | - $table->timestamps(); |
|
9 | + /** |
|
10 | + * Run the migrations. |
|
11 | + * |
|
12 | + * @return void |
|
13 | + */ |
|
14 | + public function up() |
|
15 | + { |
|
16 | + Schema::create('oauth_clients', function (Blueprint $table) { |
|
17 | + $table->increments('id'); |
|
18 | + $table->integer('user_id')->nullable(); |
|
19 | + $table->string('name'); |
|
20 | + $table->string('secret', 100); |
|
21 | + $table->text('redirect'); |
|
22 | + $table->boolean('personal_access_client')->default(0); |
|
23 | + $table->boolean('password_client')->default(0); |
|
24 | + $table->boolean('revoked')->default(0); |
|
25 | + $table->timestamps(); |
|
26 | 26 | |
27 | - $table->foreign('user_id')->references('id')->on('users'); |
|
28 | - }); |
|
29 | - } |
|
27 | + $table->foreign('user_id')->references('id')->on('users'); |
|
28 | + }); |
|
29 | + } |
|
30 | 30 | |
31 | - /** |
|
32 | - * Reverse the migrations. |
|
33 | - * |
|
34 | - * @return void |
|
35 | - */ |
|
36 | - public function down() |
|
37 | - { |
|
38 | - Schema::drop('oauth_clients'); |
|
39 | - } |
|
31 | + /** |
|
32 | + * Reverse the migrations. |
|
33 | + * |
|
34 | + * @return void |
|
35 | + */ |
|
36 | + public function down() |
|
37 | + { |
|
38 | + Schema::drop('oauth_clients'); |
|
39 | + } |
|
40 | 40 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('oauth_clients', function (Blueprint $table) { |
|
16 | + Schema::create('oauth_clients', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->integer('user_id')->nullable(); |
19 | 19 | $table->string('name'); |
@@ -6,29 +6,29 @@ |
||
6 | 6 | |
7 | 7 | class CreateOauthPersonalAccessClientsTable extends Migration |
8 | 8 | { |
9 | - /** |
|
10 | - * Run the migrations. |
|
11 | - * |
|
12 | - * @return void |
|
13 | - */ |
|
14 | - public function up() |
|
15 | - { |
|
16 | - Schema::create('oauth_personal_access_clients', function (Blueprint $table) { |
|
17 | - $table->increments('id'); |
|
18 | - $table->integer('client_id'); |
|
19 | - $table->timestamps(); |
|
9 | + /** |
|
10 | + * Run the migrations. |
|
11 | + * |
|
12 | + * @return void |
|
13 | + */ |
|
14 | + public function up() |
|
15 | + { |
|
16 | + Schema::create('oauth_personal_access_clients', function (Blueprint $table) { |
|
17 | + $table->increments('id'); |
|
18 | + $table->integer('client_id'); |
|
19 | + $table->timestamps(); |
|
20 | 20 | |
21 | - $table->foreign('client_id')->references('id')->on('oauth_clients'); |
|
22 | - }); |
|
23 | - } |
|
21 | + $table->foreign('client_id')->references('id')->on('oauth_clients'); |
|
22 | + }); |
|
23 | + } |
|
24 | 24 | |
25 | - /** |
|
26 | - * Reverse the migrations. |
|
27 | - * |
|
28 | - * @return void |
|
29 | - */ |
|
30 | - public function down() |
|
31 | - { |
|
32 | - Schema::drop('oauth_personal_access_clients'); |
|
33 | - } |
|
25 | + /** |
|
26 | + * Reverse the migrations. |
|
27 | + * |
|
28 | + * @return void |
|
29 | + */ |
|
30 | + public function down() |
|
31 | + { |
|
32 | + Schema::drop('oauth_personal_access_clients'); |
|
33 | + } |
|
34 | 34 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('oauth_personal_access_clients', function (Blueprint $table) { |
|
16 | + Schema::create('oauth_personal_access_clients', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->integer('client_id'); |
19 | 19 | $table->timestamps(); |
@@ -6,35 +6,35 @@ |
||
6 | 6 | |
7 | 7 | class CreateOauthAccessTokensTable extends Migration |
8 | 8 | { |
9 | - /** |
|
10 | - * Run the migrations. |
|
11 | - * |
|
12 | - * @return void |
|
13 | - */ |
|
14 | - public function up() |
|
15 | - { |
|
16 | - Schema::create('oauth_access_tokens', function (Blueprint $table) { |
|
17 | - $table->string('id', 100)->primary(); |
|
18 | - $table->integer('user_id')->nullable(); |
|
19 | - $table->integer('client_id'); |
|
20 | - $table->string('name')->nullable(); |
|
21 | - $table->text('scopes')->nullable(); |
|
22 | - $table->boolean('revoked'); |
|
23 | - $table->timestamps(); |
|
24 | - $table->dateTime('expires_at')->nullable(); |
|
9 | + /** |
|
10 | + * Run the migrations. |
|
11 | + * |
|
12 | + * @return void |
|
13 | + */ |
|
14 | + public function up() |
|
15 | + { |
|
16 | + Schema::create('oauth_access_tokens', function (Blueprint $table) { |
|
17 | + $table->string('id', 100)->primary(); |
|
18 | + $table->integer('user_id')->nullable(); |
|
19 | + $table->integer('client_id'); |
|
20 | + $table->string('name')->nullable(); |
|
21 | + $table->text('scopes')->nullable(); |
|
22 | + $table->boolean('revoked'); |
|
23 | + $table->timestamps(); |
|
24 | + $table->dateTime('expires_at')->nullable(); |
|
25 | 25 | |
26 | - $table->foreign('user_id')->references('id')->on('users'); |
|
27 | - $table->foreign('client_id')->references('id')->on('oauth_clients'); |
|
28 | - }); |
|
29 | - } |
|
26 | + $table->foreign('user_id')->references('id')->on('users'); |
|
27 | + $table->foreign('client_id')->references('id')->on('oauth_clients'); |
|
28 | + }); |
|
29 | + } |
|
30 | 30 | |
31 | - /** |
|
32 | - * Reverse the migrations. |
|
33 | - * |
|
34 | - * @return void |
|
35 | - */ |
|
36 | - public function down() |
|
37 | - { |
|
38 | - Schema::drop('oauth_access_tokens'); |
|
39 | - } |
|
31 | + /** |
|
32 | + * Reverse the migrations. |
|
33 | + * |
|
34 | + * @return void |
|
35 | + */ |
|
36 | + public function down() |
|
37 | + { |
|
38 | + Schema::drop('oauth_access_tokens'); |
|
39 | + } |
|
40 | 40 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('oauth_access_tokens', function (Blueprint $table) { |
|
16 | + Schema::create('oauth_access_tokens', function(Blueprint $table) { |
|
17 | 17 | $table->string('id', 100)->primary(); |
18 | 18 | $table->integer('user_id')->nullable(); |
19 | 19 | $table->integer('client_id'); |
@@ -6,30 +6,30 @@ |
||
6 | 6 | |
7 | 7 | class CreateOauthRefreshTokensTable extends Migration |
8 | 8 | { |
9 | - /** |
|
10 | - * Run the migrations. |
|
11 | - * |
|
12 | - * @return void |
|
13 | - */ |
|
14 | - public function up() |
|
15 | - { |
|
16 | - Schema::create('oauth_refresh_tokens', function (Blueprint $table) { |
|
17 | - $table->string('id', 100)->primary(); |
|
18 | - $table->string('access_token_id', 100); |
|
19 | - $table->boolean('revoked'); |
|
20 | - $table->dateTime('expires_at')->nullable(); |
|
9 | + /** |
|
10 | + * Run the migrations. |
|
11 | + * |
|
12 | + * @return void |
|
13 | + */ |
|
14 | + public function up() |
|
15 | + { |
|
16 | + Schema::create('oauth_refresh_tokens', function (Blueprint $table) { |
|
17 | + $table->string('id', 100)->primary(); |
|
18 | + $table->string('access_token_id', 100); |
|
19 | + $table->boolean('revoked'); |
|
20 | + $table->dateTime('expires_at')->nullable(); |
|
21 | 21 | |
22 | - $table->foreign('access_token_id')->references('id')->on('oauth_access_tokens'); |
|
23 | - }); |
|
24 | - } |
|
22 | + $table->foreign('access_token_id')->references('id')->on('oauth_access_tokens'); |
|
23 | + }); |
|
24 | + } |
|
25 | 25 | |
26 | - /** |
|
27 | - * Reverse the migrations. |
|
28 | - * |
|
29 | - * @return void |
|
30 | - */ |
|
31 | - public function down() |
|
32 | - { |
|
33 | - Schema::drop('oauth_refresh_tokens'); |
|
34 | - } |
|
26 | + /** |
|
27 | + * Reverse the migrations. |
|
28 | + * |
|
29 | + * @return void |
|
30 | + */ |
|
31 | + public function down() |
|
32 | + { |
|
33 | + Schema::drop('oauth_refresh_tokens'); |
|
34 | + } |
|
35 | 35 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('oauth_refresh_tokens', function (Blueprint $table) { |
|
16 | + Schema::create('oauth_refresh_tokens', function(Blueprint $table) { |
|
17 | 17 | $table->string('id', 100)->primary(); |
18 | 18 | $table->string('access_token_id', 100); |
19 | 19 | $table->boolean('revoked'); |