mercredi 20 juillet 2016

[Laravel 5.1]Custom routes display a white (blank) page

Im currently using XAMPP (PHP 5.6.21) on a Win 10 machine.

Im doing a migration from a site in .net to laravel. Until now i almost had no problem, most of the previous problems came from inexperience. But i can't find solutions for this error.

routes.php

//Operaciones
Route::resource('operaciones', 'OperacionesController');
//Ruta al cierre de Operaciones
Route::any('operaciones/cerrar', ['as' => 'operaciones/cerrar', function(){
dd('asdasd');
}]);

The resource route works fine, but the 2nd route brings me a white (blank) page

And does not matter if i put anything in the web browser

if i put

http://localhost:8080/mutualv0/public/operaciones/asdasdasd

white page, if i put

http://localhost:8080/mutualv0/public/operaciones/cerrar

withe again...

But, if y try this

http://localhost:8080/mutualv0/public/operaciones2

NotFoundHttpException

I have nothing in the logs, i installed a laravel link checker and does not trow me any errors... i just don´t know what to do...



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire