Completed
Push — master ( 782f26...cf2713 )
by Sherif
02:10
created
src/Modules/Permissions/Http/Controllers/PermissionController.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -7,14 +7,14 @@
 block discarded – undo
7 7
 
8 8
 class PermissionController extends BaseApiController
9 9
 {
10
-    /**
11
-     * Init new object.
12
-     *
13
-     * @param   PermissionRepository $repo
14
-     * @return  void
15
-     */
16
-    public function __construct(PermissionRepository $repo)
17
-    {
18
-        parent::__construct($repo, 'App\Modules\Permissions\Http\Resources\Permission');
19
-    }
10
+	/**
11
+	 * Init new object.
12
+	 *
13
+	 * @param   PermissionRepository $repo
14
+	 * @return  void
15
+	 */
16
+	public function __construct(PermissionRepository $repo)
17
+	{
18
+		parent::__construct($repo, 'App\Modules\Permissions\Http\Resources\Permission');
19
+	}
20 20
 }
Please login to merge, or discard this patch.
src/Modules/Permissions/Repositories/PermissionRepository.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -5,14 +5,14 @@
 block discarded – undo
5 5
 
6 6
 class PermissionRepository extends BaseRepository
7 7
 {
8
-    /**
9
-     * Init new object.
10
-     *
11
-     * @param   Permission $model
12
-     * @return  void
13
-     */
14
-    public function __construct(Permission $model)
15
-    {
16
-        parent::__construct($model);
17
-    }
8
+	/**
9
+	 * Init new object.
10
+	 *
11
+	 * @param   Permission $model
12
+	 * @return  void
13
+	 */
14
+	public function __construct(Permission $model)
15
+	{
16
+		parent::__construct($model);
17
+	}
18 18
 }
Please login to merge, or discard this patch.
src/Modules/Permissions/ModelObservers/PermissionObserver.php 1 patch
Indentation   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -6,53 +6,53 @@
 block discarded – undo
6 6
 class PermissionObserver
7 7
 {
8 8
 
9
-    public function saving($model)
10
-    {
11
-        //
12
-    }
13
-
14
-    public function saved($model)
15
-    {
16
-        //
17
-    }
18
-
19
-    public function creating($model)
20
-    {
21
-        //
22
-    }
23
-
24
-    public function created($model)
25
-    {
26
-        //
27
-    }
28
-
29
-    public function updating($model)
30
-    {
31
-        //
32
-    }
33
-
34
-    public function updated($model)
35
-    {
36
-        //
37
-    }
38
-
39
-    public function deleting($model)
40
-    {
41
-        //
42
-    }
43
-
44
-    public function deleted($model)
45
-    {
46
-        //
47
-    }
48
-
49
-    public function restoring($model)
50
-    {
51
-        //
52
-    }
53
-
54
-    public function restored($model)
55
-    {
56
-        //
57
-    }
9
+	public function saving($model)
10
+	{
11
+		//
12
+	}
13
+
14
+	public function saved($model)
15
+	{
16
+		//
17
+	}
18
+
19
+	public function creating($model)
20
+	{
21
+		//
22
+	}
23
+
24
+	public function created($model)
25
+	{
26
+		//
27
+	}
28
+
29
+	public function updating($model)
30
+	{
31
+		//
32
+	}
33
+
34
+	public function updated($model)
35
+	{
36
+		//
37
+	}
38
+
39
+	public function deleting($model)
40
+	{
41
+		//
42
+	}
43
+
44
+	public function deleted($model)
45
+	{
46
+		//
47
+	}
48
+
49
+	public function restoring($model)
50
+	{
51
+		//
52
+	}
53
+
54
+	public function restored($model)
55
+	{
56
+		//
57
+	}
58 58
 }
Please login to merge, or discard this patch.
src/Modules/Permissions/Permission.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -6,37 +6,37 @@
 block discarded – undo
6 6
 class Permission extends Model
7 7
 {
8 8
 
9
-    use SoftDeletes;
10
-    protected $table    = 'permissions';
11
-    protected $dates    = ['created_at', 'updated_at', 'deleted_at'];
12
-    protected $hidden   = ['deleted_at'];
13
-    protected $guarded  = ['id'];
14
-    protected $fillable = ['name', 'model'];
15
-    public $searchable  = ['name', 'model'];
9
+	use SoftDeletes;
10
+	protected $table    = 'permissions';
11
+	protected $dates    = ['created_at', 'updated_at', 'deleted_at'];
12
+	protected $hidden   = ['deleted_at'];
13
+	protected $guarded  = ['id'];
14
+	protected $fillable = ['name', 'model'];
15
+	public $searchable  = ['name', 'model'];
16 16
 
17
-    public function getCreatedAtAttribute($value)
18
-    {
19
-        return \Carbon\Carbon::parse($value)->tz(\Session::get('time-zone'))->toDateTimeString();
20
-    }
17
+	public function getCreatedAtAttribute($value)
18
+	{
19
+		return \Carbon\Carbon::parse($value)->tz(\Session::get('time-zone'))->toDateTimeString();
20
+	}
21 21
 
22
-    public function getUpdatedAtAttribute($value)
23
-    {
24
-        return \Carbon\Carbon::parse($value)->tz(\Session::get('time-zone'))->toDateTimeString();
25
-    }
22
+	public function getUpdatedAtAttribute($value)
23
+	{
24
+		return \Carbon\Carbon::parse($value)->tz(\Session::get('time-zone'))->toDateTimeString();
25
+	}
26 26
 
27
-    public function getDeletedAtAttribute($value)
28
-    {
29
-        return \Carbon\Carbon::parse($value)->tz(\Session::get('time-zone'))->toDateTimeString();
30
-    }
27
+	public function getDeletedAtAttribute($value)
28
+	{
29
+		return \Carbon\Carbon::parse($value)->tz(\Session::get('time-zone'))->toDateTimeString();
30
+	}
31 31
     
32
-    public function roles()
33
-    {
34
-        return $this->belongsToMany('App\Modules\Roles\Role', 'roles_permissions', 'permission_id', 'role_id')->whereNull('roles_permissions.deleted_at')->withTimestamps();
35
-    }
32
+	public function roles()
33
+	{
34
+		return $this->belongsToMany('App\Modules\Roles\Role', 'roles_permissions', 'permission_id', 'role_id')->whereNull('roles_permissions.deleted_at')->withTimestamps();
35
+	}
36 36
 
37
-    public static function boot()
38
-    {
39
-        parent::boot();
40
-        Permission::observe(\App::make('App\Modules\Permissions\ModelObservers\PermissionObserver'));
41
-    }
37
+	public static function boot()
38
+	{
39
+		parent::boot();
40
+		Permission::observe(\App::make('App\Modules\Permissions\ModelObservers\PermissionObserver'));
41
+	}
42 42
 }
Please login to merge, or discard this patch.
files/HttpKernel.php 1 patch
Indentation   +73 added lines, -73 removed lines patch added patch discarded remove patch
@@ -6,81 +6,81 @@
 block discarded – undo
6 6
 
7 7
 class Kernel extends HttpKernel
8 8
 {
9
-    /**
10
-     * The application's global HTTP middleware stack.
11
-     *
12
-     * These middleware are run during every request to your application.
13
-     *
14
-     * @var array
15
-     */
16
-    protected $middleware = [
17
-        \App\Http\Middleware\TrustProxies::class,
18
-        \App\Http\Middleware\CheckForMaintenanceMode::class,
19
-        \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
20
-        \App\Http\Middleware\TrimStrings::class,
21
-        \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
22
-    ];
9
+	/**
10
+	 * The application's global HTTP middleware stack.
11
+	 *
12
+	 * These middleware are run during every request to your application.
13
+	 *
14
+	 * @var array
15
+	 */
16
+	protected $middleware = [
17
+		\App\Http\Middleware\TrustProxies::class,
18
+		\App\Http\Middleware\CheckForMaintenanceMode::class,
19
+		\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
20
+		\App\Http\Middleware\TrimStrings::class,
21
+		\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
22
+	];
23 23
 
24
-    /**
25
-     * The application's route middleware groups.
26
-     *
27
-     * @var array
28
-     */
29
-    protected $middlewareGroups = [
30
-        'web' => [
31
-            \App\Http\Middleware\EncryptCookies::class,
32
-            \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
33
-            \Illuminate\Session\Middleware\StartSession::class,
34
-            // \Illuminate\Session\Middleware\AuthenticateSession::class,
35
-            \Illuminate\View\Middleware\ShareErrorsFromSession::class,
36
-            \App\Http\Middleware\VerifyCsrfToken::class,
37
-            \Illuminate\Routing\Middleware\SubstituteBindings::class,
38
-        ],
24
+	/**
25
+	 * The application's route middleware groups.
26
+	 *
27
+	 * @var array
28
+	 */
29
+	protected $middlewareGroups = [
30
+		'web' => [
31
+			\App\Http\Middleware\EncryptCookies::class,
32
+			\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
33
+			\Illuminate\Session\Middleware\StartSession::class,
34
+			// \Illuminate\Session\Middleware\AuthenticateSession::class,
35
+			\Illuminate\View\Middleware\ShareErrorsFromSession::class,
36
+			\App\Http\Middleware\VerifyCsrfToken::class,
37
+			\Illuminate\Routing\Middleware\SubstituteBindings::class,
38
+		],
39 39
 
40
-        'api' => [
41
-            'throttle:60,1',
42
-            \Illuminate\Routing\Middleware\SubstituteBindings::class,
43
-            \App\Modules\Core\Http\Middleware\SetSessions::class,
44
-            \App\Modules\Core\Http\Middleware\CheckPermissions::class,
45
-            \App\Modules\Core\Http\Middleware\UpdateLocaleAndTimezone::class,
46
-            \App\Modules\Core\Http\Middleware\SetRelations::class,
47
-        ],
48
-    ];
40
+		'api' => [
41
+			'throttle:60,1',
42
+			\Illuminate\Routing\Middleware\SubstituteBindings::class,
43
+			\App\Modules\Core\Http\Middleware\SetSessions::class,
44
+			\App\Modules\Core\Http\Middleware\CheckPermissions::class,
45
+			\App\Modules\Core\Http\Middleware\UpdateLocaleAndTimezone::class,
46
+			\App\Modules\Core\Http\Middleware\SetRelations::class,
47
+		],
48
+	];
49 49
 
50
-    /**
51
-     * The application's route middleware.
52
-     *
53
-     * These middleware may be assigned to groups or used individually.
54
-     *
55
-     * @var array
56
-     */
57
-    protected $routeMiddleware = [
58
-        'auth' => \App\Http\Middleware\Authenticate::class,
59
-        'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
60
-        'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
61
-        'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
62
-        'can' => \Illuminate\Auth\Middleware\Authorize::class,
63
-        'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
64
-        'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,
65
-        'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
66
-        'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
67
-        'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
68
-    ];
50
+	/**
51
+	 * The application's route middleware.
52
+	 *
53
+	 * These middleware may be assigned to groups or used individually.
54
+	 *
55
+	 * @var array
56
+	 */
57
+	protected $routeMiddleware = [
58
+		'auth' => \App\Http\Middleware\Authenticate::class,
59
+		'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
60
+		'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
61
+		'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
62
+		'can' => \Illuminate\Auth\Middleware\Authorize::class,
63
+		'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
64
+		'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,
65
+		'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
66
+		'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
67
+		'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
68
+	];
69 69
 
70
-    /**
71
-     * The priority-sorted list of middleware.
72
-     *
73
-     * This forces non-global middleware to always be in the given order.
74
-     *
75
-     * @var array
76
-     */
77
-    protected $middlewarePriority = [
78
-        \Illuminate\Session\Middleware\StartSession::class,
79
-        \Illuminate\View\Middleware\ShareErrorsFromSession::class,
80
-        \App\Http\Middleware\Authenticate::class,
81
-        \Illuminate\Routing\Middleware\ThrottleRequests::class,
82
-        \Illuminate\Session\Middleware\AuthenticateSession::class,
83
-        \Illuminate\Routing\Middleware\SubstituteBindings::class,
84
-        \Illuminate\Auth\Middleware\Authorize::class,
85
-    ];
70
+	/**
71
+	 * The priority-sorted list of middleware.
72
+	 *
73
+	 * This forces non-global middleware to always be in the given order.
74
+	 *
75
+	 * @var array
76
+	 */
77
+	protected $middlewarePriority = [
78
+		\Illuminate\Session\Middleware\StartSession::class,
79
+		\Illuminate\View\Middleware\ShareErrorsFromSession::class,
80
+		\App\Http\Middleware\Authenticate::class,
81
+		\Illuminate\Routing\Middleware\ThrottleRequests::class,
82
+		\Illuminate\Session\Middleware\AuthenticateSession::class,
83
+		\Illuminate\Routing\Middleware\SubstituteBindings::class,
84
+		\Illuminate\Auth\Middleware\Authorize::class,
85
+	];
86 86
 }
Please login to merge, or discard this patch.
Database/Migrations/2016_01_24_111942_push_notification_devices.php 2 patches
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -5,33 +5,33 @@
 block discarded – undo
5 5
 
6 6
 class PushNotificationDevices extends Migration
7 7
 {
8
-    /**
9
-     * Run the migrations.
10
-     *
11
-     * @return void
12
-     */
13
-    public function up()
14
-    {
15
-        Schema::create('push_notification_devices', function (Blueprint $table) {
16
-            $table->increments('id');
17
-            $table->string('device_token');
18
-            $table->unsignedInteger('user_id');
19
-            $table->text('access_token')->nullable();
20
-            $table->unique(array('device_token', 'user_id'));
21
-            $table->softDeletes();
22
-            $table->timestamps();
8
+	/**
9
+	 * Run the migrations.
10
+	 *
11
+	 * @return void
12
+	 */
13
+	public function up()
14
+	{
15
+		Schema::create('push_notification_devices', function (Blueprint $table) {
16
+			$table->increments('id');
17
+			$table->string('device_token');
18
+			$table->unsignedInteger('user_id');
19
+			$table->text('access_token')->nullable();
20
+			$table->unique(array('device_token', 'user_id'));
21
+			$table->softDeletes();
22
+			$table->timestamps();
23 23
             
24
-            $table->foreign('user_id')->references('id')->on('users');
25
-        });
26
-    }
24
+			$table->foreign('user_id')->references('id')->on('users');
25
+		});
26
+	}
27 27
 
28
-    /**
29
-     * Reverse the migrations.
30
-     *
31
-     * @return void
32
-     */
33
-    public function down()
34
-    {
35
-        Schema::dropIfExists('push_notifications_devices');
36
-    }
28
+	/**
29
+	 * Reverse the migrations.
30
+	 *
31
+	 * @return void
32
+	 */
33
+	public function down()
34
+	{
35
+		Schema::dropIfExists('push_notifications_devices');
36
+	}
37 37
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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
             $table->increments('id');
17 17
             $table->string('device_token');
18 18
             $table->unsignedInteger('user_id');
Please login to merge, or discard this patch.
Modules/Permissions/Database/Migrations/2016_01_05_130506_permissions.php 2 patches
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -5,41 +5,41 @@
 block discarded – undo
5 5
 
6 6
 class Permissions extends Migration
7 7
 {
8
-    /**
9
-     * Run the migrations.
10
-     *
11
-     * @return void
12
-     */
13
-    public function up()
14
-    {
15
-        Schema::create('permissions', function (Blueprint $table) {
16
-            $table->increments('id');
17
-            $table->string('name', 100);
18
-            $table->string('model', 100);
19
-            $table->softDeletes();
20
-            $table->timestamps();
21
-            $table->unique(array('name', 'model'));
22
-        });
23
-        Schema::create('roles_permissions', function (Blueprint $table) {
24
-            $table->increments('id');
25
-            $table->unsignedInteger('role_id');
26
-            $table->unsignedInteger('permission_id');
27
-            $table->softDeletes();
28
-            $table->timestamps();
8
+	/**
9
+	 * Run the migrations.
10
+	 *
11
+	 * @return void
12
+	 */
13
+	public function up()
14
+	{
15
+		Schema::create('permissions', function (Blueprint $table) {
16
+			$table->increments('id');
17
+			$table->string('name', 100);
18
+			$table->string('model', 100);
19
+			$table->softDeletes();
20
+			$table->timestamps();
21
+			$table->unique(array('name', 'model'));
22
+		});
23
+		Schema::create('roles_permissions', function (Blueprint $table) {
24
+			$table->increments('id');
25
+			$table->unsignedInteger('role_id');
26
+			$table->unsignedInteger('permission_id');
27
+			$table->softDeletes();
28
+			$table->timestamps();
29 29
 
30
-            $table->foreign('role_id')->references('id')->on('roles');
31
-            $table->foreign('permission_id')->references('id')->on('permissions');
32
-        });
33
-    }
30
+			$table->foreign('role_id')->references('id')->on('roles');
31
+			$table->foreign('permission_id')->references('id')->on('permissions');
32
+		});
33
+	}
34 34
 
35
-    /**
36
-     * Reverse the migrations.
37
-     *
38
-     * @return void
39
-     */
40
-    public function down()
41
-    {
42
-        Schema::dropIfExists('permissions');
43
-        Schema::dropIfExists('roles_permissions');
44
-    }
35
+	/**
36
+	 * Reverse the migrations.
37
+	 *
38
+	 * @return void
39
+	 */
40
+	public function down()
41
+	{
42
+		Schema::dropIfExists('permissions');
43
+		Schema::dropIfExists('roles_permissions');
44
+	}
45 45
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
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
             $table->increments('id');
17 17
             $table->string('name', 100);
18 18
             $table->string('model', 100);
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
             $table->timestamps();
21 21
             $table->unique(array('name', 'model'));
22 22
         });
23
-        Schema::create('roles_permissions', function (Blueprint $table) {
23
+        Schema::create('roles_permissions', function(Blueprint $table) {
24 24
             $table->increments('id');
25 25
             $table->unsignedInteger('role_id');
26 26
             $table->unsignedInteger('permission_id');
Please login to merge, or discard this patch.
Database/Migrations/2016_06_01_000004_create_oauth_auth_codes_table.php 2 patches
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -6,33 +6,33 @@
 block discarded – undo
6 6
 
7 7
 class CreateOauthAuthCodesTable extends Migration
8 8
 {
9
-    /**
10
-     * Run the migrations.
11
-     *
12
-     * @return void
13
-     */
14
-    public function up()
15
-    {
16
-        Schema::create('oauth_auth_codes', function (Blueprint $table) {
17
-            $table->string('id', 100)->primary();
18
-            $table->unsignedInteger('user_id');
19
-            $table->unsignedInteger('client_id');
20
-            $table->text('scopes')->nullable();
21
-            $table->boolean('revoked');
22
-            $table->dateTime('expires_at')->nullable();
9
+	/**
10
+	 * Run the migrations.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function up()
15
+	{
16
+		Schema::create('oauth_auth_codes', function (Blueprint $table) {
17
+			$table->string('id', 100)->primary();
18
+			$table->unsignedInteger('user_id');
19
+			$table->unsignedInteger('client_id');
20
+			$table->text('scopes')->nullable();
21
+			$table->boolean('revoked');
22
+			$table->dateTime('expires_at')->nullable();
23 23
 
24
-            $table->foreign('user_id')->references('id')->on('users');
25
-            $table->foreign('client_id')->references('id')->on('oauth_clients');
26
-        });
27
-    }
24
+			$table->foreign('user_id')->references('id')->on('users');
25
+			$table->foreign('client_id')->references('id')->on('oauth_clients');
26
+		});
27
+	}
28 28
 
29
-    /**
30
-     * Reverse the migrations.
31
-     *
32
-     * @return void
33
-     */
34
-    public function down()
35
-    {
36
-        Schema::drop('oauth_auth_codes');
37
-    }
29
+	/**
30
+	 * Reverse the migrations.
31
+	 *
32
+	 * @return void
33
+	 */
34
+	public function down()
35
+	{
36
+		Schema::drop('oauth_auth_codes');
37
+	}
38 38
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('oauth_auth_codes', function (Blueprint $table) {
16
+        Schema::create('oauth_auth_codes', function(Blueprint $table) {
17 17
             $table->string('id', 100)->primary();
18 18
             $table->unsignedInteger('user_id');
19 19
             $table->unsignedInteger('client_id');
Please login to merge, or discard this patch.
Database/Migrations/2016_06_01_000001_create_oauth_clients_table.php 2 patches
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -6,35 +6,35 @@
 block discarded – undo
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->unsignedInteger('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->unsignedInteger('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
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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->unsignedInteger('user_id')->nullable();
19 19
             $table->string('name');
Please login to merge, or discard this patch.