useract wip
This commit is contained in:
1 parent
10b0d334ab
commit
7e9d841856
19 files changed
+194
-51
No files matched your search
@@ -7,10 +7,20 @@ use Illuminate\Database\Eloquent\Model;
|
||||
class UserActivity extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'user_id', 'url',
|
||||
'user_id',
|
||||
'url',
|
||||
'session_id',
|
||||
'ip',
|
||||
'country',
|
||||
'location',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'created_at' => 'datetime',
|
||||
];
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user