How to create a text file and a JSON with laravel 4 framework?
To use the filesystem of Laravel, you should access it through the File
Facade.
Create a new file:
//UsageFile::put($path,$contents);//ExampleFile::put('web/text/mytextdocument.txt','John Doe');
Delete a file:
//UsageFile::delete(string|array $paths)//ExampleFile::delete('web/text/mytextdocument.txt');
The complete documentation on all available methods is found here:https://laravel.com/api/4.2/Illuminate/Filesystem/Filesystem.html