Route:
Route::group( array( 'prefix' => 'api' ), function( ) {
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Headers: Content-Type');
Route::resource( 'users' , 'UserController' );
} );
Controller:
public function store()
{
//
//$data = (object)Input::all();
return Response::json ( array ('test' => 'works' ) );
}
In the first Post I am getting the 405:
In my second Post I am getting a 200 but No response is returned?
When I try to post/put to the above I get a 405. Not sure what I am missing? I want to see the return! In other words why is my response not working?