laravel automatically outputs as json anyway