Ismail Malik Ismail Malik - 22 days ago 4
MySQL Question

Laravel [login-message] not found exception

I'm getting this error

this


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\LoginMessa‌​geController.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');
}
}

Answer

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

Comments