Issue with Closure route

Posted 11 months ago by dcaldessa

I have a route that I am trying to set to a simple page but it is not working this is what I have

Route::get('userSelection', function(){
    $roles = \dracanon\Role::all();
    return view('admin.users.note.iframe.noteUserSelectionModalContent');

and when i go to the url

I keep getting the following error

(1/1) ErrorException
Undefined index: controller

in ControllerActionNameComposer.php (line 16)
at HandleExceptions->handleError(8, 'Undefined index: controller', 'D:\Ampps\www\\app\Http\Composers\ControllerActionNameComposer.php', 16, array('view' => object(View), 'action' => array('middleware' => 'web', 'uses' => object(Closure), 'namespace' => 'dracanon\Http\Controllers', 'prefix' => null, 'where' => array())))
in ControllerActionNameComposer.php (line 16)

Not sure why I am getting this error on a simple route, my friend has the same project that I am working with on his pc and his routes go through fine. Any help to solve this would be great I am at a loss where I sould be looking for a resolution.

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.