vendredi 29 avril 2016

Laravel 5 route to controller outside the namespace or route to another controller

I want to route to a adminController which is located under Administration Module : App\Modules\Administration\Http\Controller to perform addUser action.

To call the AdminController, i am using the route.php located under App\Modules\User. Below is my route.php in user module.

Route::group(array('namespace'=>'App\Modules\Administration\Http\Controllers'), function(){

        Route::post('/addUser', [
            'uses' => 'adminController@addUser',
            'as' => 'addUser'
        ]);

    });

But i am getting error saying route does not exist. can you help me out?.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1TiW1qI
via IFTTT

Aucun commentaire:

Enregistrer un commentaire