Hi there, Diaa.
Ricardo Vega
2

Using Laravel 5.3 with Dingo you must ensure that on FruitsController you will use `Dingo\Api\Routing\Helpers;` in order for the tests to pass this point, otherwise $this->response is not found.

E.g.:

use App\Fruit;
use Dingo\Api\Routing\Helpers;

class FruitsController extends Controller
{
use Helpers;

public function index()
{
$fruits = Fruit::all();

return $this->response->array(['data' => $fruits], 200);
}

}
Like what you read? Give Ioan Albescu a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.