@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Illuminate\Contracts\Auth\Guard; |
| 6 | 6 | use Dingo\Api\Http; |
| 7 | 7 | use Dingo\Api\Routing\Helpers; |
| 8 | -use Illuminate\Http\Request; |
|
| 9 | 8 | |
| 10 | 9 | class SetViewVariable |
| 11 | 10 | { |
@@ -41,11 +41,11 @@ |
||
| 41 | 41 | |
| 42 | 42 | public function scopeLimit($query) |
| 43 | 43 | { |
| 44 | - return $query->select('notifications.*','key'); |
|
| 44 | + return $query->select('notifications.*', 'key'); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | public function users() { |
| 48 | - return $this->belongsToMany('App\User')->withPivot('notifications_id','user_id'); |
|
| 48 | + return $this->belongsToMany('App\User')->withPivot('notifications_id', 'user_id'); |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | } |