In your composer.json file, you can see the
'autoload' : {
'classmap' : {
...
}
section, add your path to the directory of your controller, then type:
./composer.phar dump-autoload
I looks like:
Route::resource('mdpay', 'LoginController');
should work.
You can then run:
php artisan routes
to see what's going on.
If you want a route prefix you could:
Route::group(['prefix' => 'dirname'], function()
{
Route::resource('mdpay', 'LoginController');
});
Thanks, this helped out, but I found the fix after coming back from lunch. I was calling the entire path when all I needed to call was the library. So, the full solution instead of mdpay/LoginController@index, it was simply just LoginController@index.
bomberman1990 said:
In your composer.json file, you can see the
'autoload' : { 'classmap' : { ... }
section, add your path to the directory of your controller, then type:
./composer.phar dump-autoload
I saw this after I posted. This is exactly what needed to happen to work. Thanks :)
rags02 said:
I looks like:
Route::resource('mdpay', 'LoginController');
should work.
You can then run:
php artisan routes
to see what's going on.
If you want a route prefix you could:
Route::group(['prefix' => 'dirname'], function() { Route::resource('mdpay', 'LoginController'); });
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community