vendredi 28 août 2015

Laravel Routing: page you are looking for could not be found

I have a defined a rout in Laravel but when i call the route I Get 404 (Sorry, the page you are looking for could not be found.)

The Route is: einlagerungen/{$paletten_id}/bei_paletten_id

Route Definitions

Route::get('/', function () {
    return view('welcome');
});

Route::get('einlagerungen/{$paletten_id}/bei_paletten_id', [
   'as'=>'einlagerungen/bei_paletten_id', 'uses'=>'EinlagerungRestController@beiPalettenId'
]);

Controller Code

class EinlagerungRestController extends Controller
{
    ...

    public function beiPalettenId($paletten_id)
    {   
        return "it works";
    }

    ....

}



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1NLf3qG
via IFTTT

Aucun commentaire:

Enregistrer un commentaire