Hello everyone, I have a question, I hope you can help me. In my application with Laravel 8 I want to integrate polices, however I do not have a Users table or Users Model, since I log in with the consumption of an external API where I log in.
I understand that in the polices you have to pass the Users by default as a parameter, but would there be the possibility of integrating it without it?
public function preview()
{
$this->authorize('validator');
return 'preview';
}
my police
public function validator(?User $user)
{
return true;
}