Answer the question
In order to leave comments, you need to log in
Why is user verification not working?
There is a simple package for administering articles Link . Everything would be fine, but he does not have his own secure admin panel. The author himself proposes such a check
public static function checkUser(?User $user)
{
return $user ? $user->id === 1 : false;
}
Answer the question
In order to leave comments, you need to log in
I had to throw out almost all the procedures for checking the author and check the routes
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question