laravel restrict route access for create user 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']);
}