@@ -40,7 +40,7 @@ |
||
40 | 40 | { |
41 | 41 | \ErrorHandler::notFound('report'); |
42 | 42 | } |
43 | - else if (! $skipPermission && ! \Core::users()->can($report->view_name, 'reports')) |
|
43 | + else if ( ! $skipPermission && ! \Core::users()->can($report->view_name, 'reports')) |
|
44 | 44 | { |
45 | 45 | \ErrorHandler::noPermissions(); |
46 | 46 | } |
@@ -3,7 +3,7 @@ |
||
3 | 3 | use Illuminate\Notifications\DatabaseNotification; |
4 | 4 | use Illuminate\Database\Eloquent\SoftDeletes; |
5 | 5 | |
6 | -class Notification extends DatabaseNotification{ |
|
6 | +class Notification extends DatabaseNotification { |
|
7 | 7 | |
8 | 8 | public function getCreatedAtAttribute($value) |
9 | 9 | { |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | use SoftDeletes, HasApiTokens; |
11 | 11 | protected $table = 'users'; |
12 | 12 | protected $dates = ['created_at', 'updated_at', 'deleted_at']; |
13 | - protected $hidden = ['password', 'remember_token','deleted_at', 'two_factor_code']; |
|
13 | + protected $hidden = ['password', 'remember_token', 'deleted_at', 'two_factor_code']; |
|
14 | 14 | protected $guarded = ['id']; |
15 | 15 | protected $fillable = ['name', 'email', 'password']; |
16 | 16 | public $searchable = ['name', 'email']; |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | |
68 | 68 | public function groups() |
69 | 69 | { |
70 | - return $this->belongsToMany('\App\Modules\V1\Acl\AclGroup','users_groups','user_id','group_id')->whereNull('users_groups.deleted_at')->withTimestamps(); |
|
70 | + return $this->belongsToMany('\App\Modules\V1\Acl\AclGroup', 'users_groups', 'user_id', 'group_id')->whereNull('users_groups.deleted_at')->withTimestamps(); |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | public function oauthClients() |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | */ |
115 | 115 | public function receivesBroadcastNotificationsOn() |
116 | 116 | { |
117 | - return 'users.' . $this->id; |
|
117 | + return 'users.'.$this->id; |
|
118 | 118 | } |
119 | 119 | |
120 | 120 | public static function boot() |