mercredi 2 décembre 2015

Laravel - Dingo/Api - Request

I am just studying about laravel as api and I am using Dingo/Api to do it.

I have a controller:

<?php

...

//use Illuminate\Http\Request;
use Dingo\Api\Http\Request;

class RestaurantController extends BaseController
{
    public function update(Request $request, $id)
    {   
        //logic to update
    }
}

My question is: Should I use Dingo\Api\Http\Request or Illuminate\Http\Request ? I've tested and both of them seems to work the same way. But I keep thinking which one is the most appropriate.

Thanks :D



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire