Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0

Which version of Laravel are you using? Also, exact trace text of error 500 would help

Last updated 2 years ago.
0

I'm using laravel 4.2, and here is the error log :

::1 - - [28/Nov/2014:15:32:44 +0100] "GET /mia/laravel/public/patientList HTTP/1.1" 500 4391 "http://localhost/mia/laravel/public/users" "Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36"

Last updated 2 years ago.
0

Use this as URL in browser

http://localhost/mia/laravel/public/patientList

What is the error text on screen?

Last updated 2 years ago.
0

it fucking works when I use the url !

So my problem is somewhere else..

I know I have an url problem because my application start with :

http://localhost/mia/laravel/public/users

  • it's an authentication form, with a login and password label routed like: Route::get('users', array('as'=>'users', 'uses'=>'WUsersController@getIndex'));

then, I go to

http://localhost/mia/laravel/public/users/auth

  • using post data submission, with this route : Route::post('user/auth', array('uses'=>'WUsersController@postAuth'));
  • in this method I make sure, asking my database, the user has correct login and password, then I redirect the user to the patient list like this : return Redirect::route('patientList')->with('title', 'Patient List');
  • but my url stay as '[...]/users/post'

the patient list route looks like : Route::get('patientList', array('as'=>'patientList', uses'=>'PatientsController@getIndex'));

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.