Welcome Guest, Not a member yet? Register   Sign In
problem with restful format json

Hello, i tray to create a restFull:


class RestMovie extends ResourceController {

    protected $modelName = 'App\Models\MovieModel';
    protected $format    = 'json';

    public function index(){

        return $this->respond($this->model->findAll());

But alwais the respond is in XML and not Json:

Theme © iAndrew 2016 - Forum software by © MyBB