Hi,
Please provide an example of how to use accountMenu without the login page. Can we have more details about this: https://www.koolreport.com/docs/dashboard/application/#authentication-set-user-directly.
Do we still have to return Login class like this?
protected function login()
{
return Login::create()
->authenticate(function($username,$password){
if($username==="admin@example.com" && $password==="admin_password")
{
// If authenticated, return User object
return User::create()
->id(1)
->name("Admin")
->avatar("avatars/8.jpg")
->roles(["admin"]);
}
// If unauthenticated, return null
return null;
});
}