1 | <?php |
||
8 | class PushSubscription extends Model |
||
9 | { |
||
10 | /** |
||
11 | * The attributes that are mass assignable. |
||
12 | * |
||
13 | * @var array |
||
14 | */ |
||
15 | protected $fillable = [ |
||
16 | 'endpoint', |
||
17 | 'public_key', |
||
18 | 'auth_token', |
||
19 | ]; |
||
20 | |||
21 | /** |
||
22 | * Get the user that owns the subscription. |
||
23 | * |
||
24 | * @return \Illuminate\Contracts\Auth\Authenticatable |
||
25 | */ |
||
26 | public function user() |
||
30 | |||
31 | /** |
||
32 | * Find a subscription by the given endpint. |
||
33 | * |
||
34 | * @param string $endpoint |
||
35 | * @return static|null |
||
36 | */ |
||
37 | public static function findByEndpoint($endpoint) |
||
41 | } |
||
42 |