Closed ninijule closed 2 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?
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.
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](https://user-images.githubusercontent.com/27823056/93001996-a181d880-f533-11ea-9e62-905d1f016229.png)
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 { /**
@var array */ protected $middleware = [ // \App\Http\Middleware\TrustHosts::class, \App\Http\Middleware\TrustProxies::class, \Fruitcake\Cors\HandleCors::class, \App\Http\Middleware\CheckForMaintenanceMode::class, \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class, \App\Http\Middleware\TrimStrings::class, \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, ];
/**
@var array */ protected $middlewareGroups = [ 'web' => [ \App\Http\Middleware\EncryptCookies::class, \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, \Illuminate\Session\Middleware\StartSession::class, // \Illuminate\Session\Middleware\AuthenticateSession::class, \Illuminate\View\Middleware\ShareErrorsFromSession::class, \App\Http\Middleware\VerifyCsrfToken::class, \Illuminate\Routing\Middleware\SubstituteBindings::class, ],
];
/**
Can you help me please :) ? ty