antonioribeiro / firewall

Firewall package for Laravel applications
BSD 3-Clause "New" or "Revised" License
1.39k stars 162 forks source link

Php artisan firewall:list doesn't work #171

Closed ninijule closed 2 years ago

ninijule commented 3 years ago

Hello, i have a problem with the firewall because i can't list and use the command in the documentation. I installed Firewall with composer. I run migration. I have this when i try to launch php artisan firewall:list image image

I registered all in the middleware but nothing happens in the console.

<?php

namespace App\Http;

use Illuminate\Foundation\Http\Kernel as HttpKernel;

class Kernel extends HttpKernel { /**

Can you help me please :) ? ty

pvankouteren commented 3 years ago

The middelware registration has nothing to do with the command not being able to run. Can you run

php artisan

and get an overview of the commands?

You're using laravel? Which version?

ritaorion commented 2 years ago

The question is two years old here, but I had a similar issue the very first time I installed this. If you have the same problem as ninijule, just run composer update. That seemed to work for me.