Update

Turns out laravel 5 has a helper to return json.

"response()->json()"