@@ -9,5 +9,5 @@ |
||
| 9 | 9 | |
| 10 | 10 | abstract class Controller extends BaseController |
| 11 | 11 | { |
| 12 | - use AuthorizesRequests, DispatchesJobs, ValidatesRequests; |
|
| 12 | + use AuthorizesRequests, DispatchesJobs, ValidatesRequests; |
|
| 13 | 13 | } |
@@ -7,26 +7,26 @@ |
||
| 7 | 7 | |
| 8 | 8 | class AuthServiceProvider extends ServiceProvider |
| 9 | 9 | { |
| 10 | - /** |
|
| 11 | - * The policy mappings for the application. |
|
| 12 | - * |
|
| 13 | - * @var array |
|
| 14 | - */ |
|
| 15 | - protected $policies = [ |
|
| 16 | - 'App\Model' => 'App\Policies\ModelPolicy', |
|
| 17 | - ]; |
|
| 10 | + /** |
|
| 11 | + * The policy mappings for the application. |
|
| 12 | + * |
|
| 13 | + * @var array |
|
| 14 | + */ |
|
| 15 | + protected $policies = [ |
|
| 16 | + 'App\Model' => 'App\Policies\ModelPolicy', |
|
| 17 | + ]; |
|
| 18 | 18 | |
| 19 | - /** |
|
| 20 | - * Register any application authentication / authorization services. |
|
| 21 | - * |
|
| 22 | - * @param \Illuminate\Contracts\Auth\Access\Gate $gate |
|
| 23 | - * |
|
| 24 | - * @return void |
|
| 25 | - */ |
|
| 26 | - public function boot(GateContract $gate) |
|
| 27 | - { |
|
| 28 | - $this->registerPolicies($gate); |
|
| 19 | + /** |
|
| 20 | + * Register any application authentication / authorization services. |
|
| 21 | + * |
|
| 22 | + * @param \Illuminate\Contracts\Auth\Access\Gate $gate |
|
| 23 | + * |
|
| 24 | + * @return void |
|
| 25 | + */ |
|
| 26 | + public function boot(GateContract $gate) |
|
| 27 | + { |
|
| 28 | + $this->registerPolicies($gate); |
|
| 29 | 29 | |
| 30 | - // |
|
| 31 | - } |
|
| 30 | + // |
|
| 31 | + } |
|
| 32 | 32 | } |
@@ -11,29 +11,29 @@ |
||
| 11 | 11 | use Illuminate\Foundation\Auth\Access\Authorizable; |
| 12 | 12 | |
| 13 | 13 | class User extends Model implements AuthenticatableContract, |
| 14 | - AuthorizableContract, |
|
| 15 | - CanResetPasswordContract |
|
| 14 | + AuthorizableContract, |
|
| 15 | + CanResetPasswordContract |
|
| 16 | 16 | { |
| 17 | - use Authenticatable, Authorizable, CanResetPassword; |
|
| 17 | + use Authenticatable, Authorizable, CanResetPassword; |
|
| 18 | 18 | |
| 19 | - /** |
|
| 20 | - * The database table used by the model. |
|
| 21 | - * |
|
| 22 | - * @var string |
|
| 23 | - */ |
|
| 24 | - protected $table = 'users'; |
|
| 19 | + /** |
|
| 20 | + * The database table used by the model. |
|
| 21 | + * |
|
| 22 | + * @var string |
|
| 23 | + */ |
|
| 24 | + protected $table = 'users'; |
|
| 25 | 25 | |
| 26 | - /** |
|
| 27 | - * The attributes that are mass assignable. |
|
| 28 | - * |
|
| 29 | - * @var array |
|
| 30 | - */ |
|
| 31 | - protected $fillable = ['email', 'password']; |
|
| 26 | + /** |
|
| 27 | + * The attributes that are mass assignable. |
|
| 28 | + * |
|
| 29 | + * @var array |
|
| 30 | + */ |
|
| 31 | + protected $fillable = ['email', 'password']; |
|
| 32 | 32 | |
| 33 | - /** |
|
| 34 | - * The attributes excluded from the model's JSON form. |
|
| 35 | - * |
|
| 36 | - * @var array |
|
| 37 | - */ |
|
| 38 | - protected $hidden = ['password', 'remember_token']; |
|
| 33 | + /** |
|
| 34 | + * The attributes excluded from the model's JSON form. |
|
| 35 | + * |
|
| 36 | + * @var array |
|
| 37 | + */ |
|
| 38 | + protected $hidden = ['password', 'remember_token']; |
|
| 39 | 39 | } |