I'm getting this error
InvalidArgumentException in C:\xampp\htdocs\FirstProject\vendor\laravel\framework\src\Illuminate\View\FileViewFinder.php line 137: View [login-message] not found.
EDIT:
C:\xampp\htdocs\FirstProject\app\Http\Controllers\LoginMessageController.php:
public function index() {
$company_name= Session::get('company_sess.company_name');
//return view('login-message');
if ($company_name) {
return redirect()->guest($company_name.'/login');
}
else {
return view('login-message');
}
}
Its saying that it cant find a view named login-message
. You need to make sure that in your views folder you actually have view with filename login-message.blade.php