I am doing coding in oops for uploading image in PHP. But After submit image, it\'s giving warning
\"Header may not contain more than a single header, new line detec
in "Illuminate\Auth\Middleware\Authenticate" The method "redirectTo" should return an url path, not the Redirect response.
... protected function redirectTo() { if(\Auth::user()->hasRole('copy')){ return '/copy/dashboardCopy'; } } ...