Is there a way in Laravel 5 to do CRUD with REST? I have a REST API already using CodeIgniter and I want my Laravel application to communicate with it.
So let's say I have this url to get the whole gender: http: //api.local/api/api_gender/gender
In my controller, it seems that I can do something like this:
$results = json_decode(file_get_contents('http://api.local/api/api_gender/gender/'));
But I do not know whether to do it right.
Now, how can I do this if I want to add a new floor in Laravel? In CI, I could just use the library of Phil's remains and just use $this->rest->put('http://api.local/api/api_gender/gender/', $parameters)
source share