Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

routes not working #1

Closed
farhanwazir opened this issue Jul 8, 2015 · 9 comments
Closed

routes not working #1

farhanwazir opened this issue Jul 8, 2015 · 9 comments

Comments

@farhanwazir
Copy link
Contributor

I used zyhn tutorial, it was working fine but in your package same code, my module routes.php is included but Route::get not working.. any hint?

@farhanwazir
Copy link
Contributor Author

Modification in description:
Routes::get loaded but second parameter not working. Below is code:
Route::get('people', function(){
return 'hello';
});

@farhanwazir
Copy link
Contributor Author

Resolved: Problem was Authentication Controller, I was defined Route:controllers and leave blank alias auth to resolve url without auth; like www.example.com/login (without alias) now it is fine with alias.

@Artem-Schander
Copy link
Collaborator

I would recommend to remove all unnecessary controllers (f.a. which are not in your modules)

@farhanwazir
Copy link
Contributor Author

Not a single controller is unnecessary, Issue found and fixed.

Route::Controllers([
'auth' => 'Auth\AuthController',
'password' => 'Auth\PasswordController'
]);

Above is normalise way.

Route::Controllers([
'' => 'Auth\AuthController',
'password' => 'Auth\PasswordController'
]);

Above is abnormal way.

Hope this will help.

@wabsa
Copy link

wabsa commented Sep 17, 2015

I have the same issue when running it to my server, Centos 6.6 but on my local its working fine. Any idea? thanks

@farhanwazir
Copy link
Contributor Author

Can u show me error?
On Sep 17, 2015 12:52 PM, "wabsa" notifications@github.com wrote:

I have the same issue when running it to my server, Centos 6.6 but on my
local its working fine. Any idea? thanks


Reply to this email directly or view it on GitHub
#1 (comment)
.

@wabsa
Copy link

wabsa commented Sep 17, 2015

here: #5

I think its in naming of module, in my cases modules are in small caps, I capitalized my the first letter as the same of the folder name of each modules.

@farhanwazir
Copy link
Contributor Author

This is incomplete message.

@farhanwazir farhanwazir reopened this Sep 27, 2015
@Artem-Schander
Copy link
Collaborator

closing due to inactivity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants