File tree 4 files changed +6
-8
lines changed
4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 6
6
use Illuminate \Database \Eloquent \Model ;
7
7
use Illuminate \Database \Eloquent \Relations \BelongsTo ;
8
8
use Illuminate \Database \Eloquent \Relations \BelongsToMany ;
9
- use Illuminate \Database \Eloquent \Relations \MorphMany ;
9
+ use Illuminate \Database \Eloquent \Relations \MorphToMany ;
10
10
use Jurager \Teams \Support \Facades \Teams ;
11
11
12
12
class Group extends Model
@@ -55,9 +55,9 @@ public function users(): BelongsToMany
55
55
/**
56
56
* Get the permissions that belongs to group.
57
57
*
58
- * @return morphToMany
58
+ * @return MorphToMany
59
59
*/
60
- public function permissions (): morphToMany
60
+ public function permissions (): MorphToMany
61
61
{
62
62
return $ this ->morphToMany (Teams::model ('ability ' ), 'entity ' , 'entity_permission ' );
63
63
}
Original file line number Diff line number Diff line change 3
3
namespace Jurager \Teams \Models ;
4
4
5
5
use Illuminate \Database \Eloquent \Model ;
6
- use Illuminate \Database \Eloquent \Relations \BelongsToMany ;
7
6
use Illuminate \Database \Eloquent \Relations \MorphToMany ;
8
7
use Jurager \Teams \Support \Facades \Teams ;
9
8
Original file line number Diff line number Diff line change 4
4
5
5
use Illuminate \Database \Eloquent \Model ;
6
6
use Illuminate \Database \Eloquent \Relations \BelongsTo ;
7
- use Illuminate \Database \Eloquent \Relations \BelongsToMany ;
8
- use Illuminate \Database \Eloquent \Relations \MorphMany ;
7
+ use Illuminate \Database \Eloquent \Relations \MorphToMany ;
9
8
use Jurager \Teams \Support \Facades \Teams ;
10
9
11
10
class Role extends Model
@@ -62,9 +61,9 @@ public function team(): BelongsTo
62
61
/**
63
62
* Get the permissions that belongs to role.
64
63
*
65
- * @return morphToMany
64
+ * @return MorphToMany
66
65
*/
67
- public function permissions (): morphToMany
66
+ public function permissions (): MorphToMany
68
67
{
69
68
return $ this ->morphToMany (Teams::model ('ability ' ), 'entity ' , 'entity_permission ' );
70
69
}
You can’t perform that action at this time.
0 commit comments