mardi 5 septembre 2017

Laravel Route not working properly

I have this function in the laravel controller

       public function rawquery()
    { 
       $resultado = DB::statement('SELECT * FROM "w8_w8shipment"');
       dd($resultado);
       return response()->json($resultado);
    }

And this is the route to get access to it

    Route::get('shipment/rawquery', 'ShipmentController@rawquery');

In the browser and postman, it shows an empty object

{}

And a 200 OK code

I don't know whats wrong. ive already read the docs.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire