you can use php constant PHP_EOL , which is platform independent.
Dec 4, 2017
2
Level 6
Change end of line character when generating code with php artisan make commands
Is there a way to change the end of line character used by the php artisan commands?
My current machine is a Windows laptop, and when I run commands like php artisan make:test SomeTest, I would the generated file to use Unix end of line characters (lf), \n instead of the Windows (crlf) \r\n.
Please or to participate in this conversation.