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

mxalix258,

The routes should be relative to the root, so:

Route::get('crm', function() { return 'Hello World'; });

Should be

Route::get('/crm', function() { return 'Hello World'; });

Or you can create a prefix (which I find to be overkill to save only a slash, lol.)

Cheers and happy coding!

Last updated 2 years ago.
0

Thanks for the reply, gustavor.

I didn't find that to be the case with the other site that I have working...but I gave it a shot and that doesn't seem to work either.

I must be missing something obvious...

Last updated 2 years ago.
0

So I tested another route, and it works.

Of these two:

Route::get('crm', function() { return 'Hello World'; });

Route::get('test', function() { return 'Hello World'; });

Only the 'test' route works...is 'crm' restricted?

Last updated 2 years ago.
0

"crm" is not a restricted term as far as I know... do you have a folder or file named "crm" in your public directory?

Last updated 2 years ago.
0

Yes, I do. Does that complicate things?

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

mxalix258 mxalix258 Joined 20 Apr 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.