I know that any array response will be converted to json in laravel by default, but i was wondering if there is a way to return the response as csv without installing any third-party library.
I need to make one controller action returns a csv instead of JSON.
Thanx for your advice,