public function __construct() { parent::__construct(); $this->middleware('auth', ['except' => ['index', 'show']]); }