Closed moaminsharifi closed 5 years ago
Sorry, but I don't be the actual issue.
Are you having an error in particular? Or it's some sort of unexpected behavior!
thanks for your responsibility.
it's some sort of unexpected behavior!
I create admin and set all router but with out login any one can access to /admin/*
I try to recreate admin role but i get error: ` ProjectFoulder>php artisan multi-auth:install Initiating... Guard: admin is already registered Force override resources...? (yes/no) [no]:
no RuntimeException : Halting installation, choose another guard name... at ProjectFoulder\vendor\bmatovu\multi-auth\src\Console\MultiAuthInstallCommand.php:67 63| 64| if (!$this->option(force)) { 65| $this->info("Guard: " . $this->name . " is already registered"); 66| if (!$this->confirm(Force override resources...?)) { 67| throw new \RuntimeException("Halting installation, choose another guard name..."); 68| } 69| // Override resources 70| $this->override = true; 71| } Exception trace: 1 Bmatovu\MultiAuth\Console\MultiAuthInstallCommand::handle() ProjectFoulder\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:29 2 call_user_func_array([]) ProjectFoulder\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:29 Please use the argument -v to see more details.`
and other time
` Force override resources...? (yes/no) [no]:
yes`
for now all thing is override but still when i go to localhost/admin/* without auth i can access anythink. thanks for your time.
Ohhhh...,
I would recommend you checking whether these routes require authentication or not
php artisan route:list
On the otherhand; RuntimeException : Halting installation, choose another guard name...
Is a warning to prevent you from overriding existing files.
Closing this due to inactivity.
i use multi-auth and create defult user (admin) in admin.php all things ok. and localhost/admin/ and localhost/admin/ * load correctly but auth not work and with out auth users go to localhost/admin/