1 | <?php |
||
29 | class SocialProvider extends Model |
||
30 | { |
||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | protected $fillable = [ |
||
35 | 'slug', |
||
36 | 'label', |
||
37 | 'scopes', |
||
38 | 'parameters', |
||
39 | 'override_scopes', |
||
40 | 'stateless', |
||
41 | ]; |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | protected $casts = [ |
||
47 | 'scopes' => 'array', |
||
48 | 'parameters' => 'array', |
||
49 | ]; |
||
50 | |||
51 | /** |
||
52 | * SocialProvider constructor. |
||
53 | * |
||
54 | * @param array $attributes |
||
55 | */ |
||
56 | 57 | public function __construct(array $attributes = []) |
|
62 | |||
63 | /** |
||
64 | * Get the route key for the model. |
||
65 | * |
||
66 | * @return string |
||
67 | */ |
||
68 | 48 | public function getRouteKeyName() |
|
72 | |||
73 | /** |
||
74 | * Set scopes which will be add to the social auth request. |
||
75 | */ |
||
76 | public function setScopes(array $scopes, bool $isOverride = false) |
||
83 | |||
84 | /** |
||
85 | * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany |
||
86 | */ |
||
87 | 24 | public function users() |
|
94 | } |
||
95 |