Right now I am using it only for user login and logout activity. I have configured User model as per documentation. Logs are getting stored in logs table (with table_name column empty) in database. But not getting loaded in admin/user-activity side. It only shows loading screen here. Am I missing anything ?
User.php
<?php
namespace App\Models;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Spatie\Permission\Traits\HasRoles;
use Haruncpi\LaravelUserActivity\Traits\Loggable;
class User extends Authenticatable
{
use HasFactory, Notifiable, HasRoles, Loggable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
'email',
'password',
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password',
'remember_token',
];
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [
'email_verified_at' => 'datetime',
];
}
Right now I am using it only for user login and logout activity. I have configured User model as per documentation. Logs are getting stored in logs table (with table_name column empty) in database. But not getting loaded in admin/user-activity side. It only shows loading screen here. Am I missing anything ? User.php