Support the ongoing development of Laravel.io →
posted 10 years ago
Configuration
Last updated 2 years ago.
0

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
Last updated 2 years ago.
0

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');
});
Last updated 2 years ago.
0

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

Last updated 2 years ago.
0

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');
});
Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

trickell trickell Joined 29 May 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.