– exceptで除外するメソッドを指定する
public function __construct(){ $this->middleware('IsSubscriber')->except('create'); } public function index(Request $request) { // $user = Auth::user(); return view('subscriber.index', compact('user')); } /** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function create() { // $user = Auth::user(); return view('subscriber.create', compact('user')); }