doing it properly with laravels response::json