@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | return [ |
4 | 4 | |
5 | - /** |
|
6 | - * Here goes your error messages. |
|
7 | - */ |
|
5 | + /** |
|
6 | + * Here goes your error messages. |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | ]; |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | return [ |
4 | 4 | |
5 | - /** |
|
6 | - * Here goes your error messages. |
|
7 | - */ |
|
5 | + /** |
|
6 | + * Here goes your error messages. |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | ]; |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | return [ |
4 | 4 | |
5 | - /** |
|
6 | - * Here goes your error messages. |
|
7 | - */ |
|
5 | + /** |
|
6 | + * Here goes your error messages. |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | ]; |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | return [ |
4 | 4 | |
5 | - /** |
|
6 | - * Here goes your error messages. |
|
7 | - */ |
|
5 | + /** |
|
6 | + * Here goes your error messages. |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | ]; |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | return [ |
4 | 4 | |
5 | - /** |
|
6 | - * Here goes your error messages. |
|
7 | - */ |
|
5 | + /** |
|
6 | + * Here goes your error messages. |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | ]; |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | return [ |
4 | 4 | |
5 | - /** |
|
6 | - * Here goes your error messages. |
|
7 | - */ |
|
5 | + /** |
|
6 | + * Here goes your error messages. |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | ]; |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | return [ |
4 | 4 | |
5 | - /** |
|
6 | - * Here goes your error messages. |
|
7 | - */ |
|
5 | + /** |
|
6 | + * Here goes your error messages. |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | ]; |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | return [ |
4 | 4 | |
5 | - /** |
|
6 | - * Here goes your error messages. |
|
7 | - */ |
|
5 | + /** |
|
6 | + * Here goes your error messages. |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | ]; |
@@ -10,32 +10,32 @@ |
||
10 | 10 | class PushNotificationDevice extends Model |
11 | 11 | { |
12 | 12 | |
13 | - use SoftDeletes; |
|
14 | - protected $table = 'push_notification_devices'; |
|
15 | - protected $dates = ['created_at', 'updated_at', 'deleted_at']; |
|
16 | - protected $hidden = ['deleted_at', 'access_token']; |
|
17 | - protected $guarded = ['id']; |
|
18 | - protected $fillable = ['device_token', 'user_id', 'access_token']; |
|
13 | + use SoftDeletes; |
|
14 | + protected $table = 'push_notification_devices'; |
|
15 | + protected $dates = ['created_at', 'updated_at', 'deleted_at']; |
|
16 | + protected $hidden = ['deleted_at', 'access_token']; |
|
17 | + protected $guarded = ['id']; |
|
18 | + protected $fillable = ['device_token', 'user_id', 'access_token']; |
|
19 | 19 | |
20 | - public function user() |
|
21 | - { |
|
22 | - return $this->belongsTo(AclUser::class); |
|
23 | - } |
|
20 | + public function user() |
|
21 | + { |
|
22 | + return $this->belongsTo(AclUser::class); |
|
23 | + } |
|
24 | 24 | |
25 | - /** |
|
26 | - * Encrypt the access_token attribute before |
|
27 | - * saving it in the storage. |
|
28 | - * |
|
29 | - * @param string $value |
|
30 | - */ |
|
31 | - public function setLoginTokenAttribute($value) |
|
32 | - { |
|
33 | - $this->attributes['access_token'] = encrypt($value); |
|
34 | - } |
|
25 | + /** |
|
26 | + * Encrypt the access_token attribute before |
|
27 | + * saving it in the storage. |
|
28 | + * |
|
29 | + * @param string $value |
|
30 | + */ |
|
31 | + public function setLoginTokenAttribute($value) |
|
32 | + { |
|
33 | + $this->attributes['access_token'] = encrypt($value); |
|
34 | + } |
|
35 | 35 | |
36 | - public static function boot() |
|
37 | - { |
|
38 | - parent::boot(); |
|
39 | - PushNotificationDevice::observe(PushNotificationDeviceObserver::class); |
|
40 | - } |
|
36 | + public static function boot() |
|
37 | + { |
|
38 | + parent::boot(); |
|
39 | + PushNotificationDevice::observe(PushNotificationDeviceObserver::class); |
|
40 | + } |
|
41 | 41 | } |