laravel middleware restrict route code example
Example: laravel restrict route methods
public function __construct()
{
$this->middleware('auth')->except(['index', 'show']);
}
public function __construct()
{
$this->middleware('auth')->except(['index', 'show']);
}