File tree Expand file tree Collapse file tree 3 files changed +15
-15
lines changed Expand file tree Collapse file tree 3 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 22
33namespace Binafy \LaravelUserMonitoring \Models ;
44
5- use Illuminate \Database \Eloquent \Factories \HasFactory ;
65use Illuminate \Database \Eloquent \Model ;
76
87class ActionMonitoring extends Model
98{
10- use HasFactory;
11-
129 /**
1310 * Set table name.
1411 *
@@ -25,8 +22,11 @@ class ActionMonitoring extends Model
2522
2623 # Relations
2724
28- public function user ()
25+ public function user (): \ Illuminate \ Database \ Eloquent \ Relations \ BelongsTo
2926 {
30- return $ this ->belongsTo (config ('user-monitoring.user.model ' ), config ('user-monitoring.user.foreign_key ' ));
27+ return $ this ->belongsTo (
28+ config ('user-monitoring.user.model ' ),
29+ config ('user-monitoring.user.foreign_key ' )
30+ );
3131 }
3232}
Original file line number Diff line number Diff line change 22
33namespace Binafy \LaravelUserMonitoring \Models ;
44
5- use Illuminate \Database \Eloquent \Factories \HasFactory ;
65use Illuminate \Database \Eloquent \Model ;
76
87class AuthenticationMonitoring extends Model
98{
10- use HasFactory;
11-
129 /**
1310 * Set table name.
1411 *
@@ -25,8 +22,11 @@ class AuthenticationMonitoring extends Model
2522
2623 # Relations
2724
28- public function user ()
25+ public function user (): \ Illuminate \ Database \ Eloquent \ Relations \ BelongsTo
2926 {
30- return $ this ->belongsTo (config ('user-monitoring.user.model ' ), config ('user-monitoring.user.foreign_key ' ));
27+ return $ this ->belongsTo (
28+ config ('user-monitoring.user.model ' ),
29+ config ('user-monitoring.user.foreign_key ' )
30+ );
3131 }
3232}
Original file line number Diff line number Diff line change 22
33namespace Binafy \LaravelUserMonitoring \Models ;
44
5- use Illuminate \Database \Eloquent \Factories \HasFactory ;
65use Illuminate \Database \Eloquent \Model ;
76
87class VisitMonitoring extends Model
98{
10- use HasFactory;
11-
129 /**
1310 * Set table name.
1411 *
@@ -25,8 +22,11 @@ class VisitMonitoring extends Model
2522
2623 # Relations
2724
28- public function user ()
25+ public function user (): \ Illuminate \ Database \ Eloquent \ Relations \ BelongsTo
2926 {
30- return $ this ->belongsTo (config ('user-monitoring.user.model ' ), config ('user-monitoring.user.foreign_key ' ));
27+ return $ this ->belongsTo (
28+ config ('user-monitoring.user.model ' ),
29+ config ('user-monitoring.user.foreign_key ' )
30+ );
3131 }
3232}
You can’t perform that action at this time.
0 commit comments