Clear all DB with new data-
php artisan key:generate && php artisan migrate:fresh --seed
Clear Cace-
php artisan cache:clear
php artisan route:clear
php artisan config:clear
php artisan view:clear
Route::get('/clear-cache', function() {
Artisan::call('cache:clear');
return "Cache is cleared";
});
Model to XML
-
Downloader - https://laravel.io/forum/02-14-2014-how-to-save-xml-response-output-to-file-for-uploading-with-sshinto
return Response::download(
-
XML to array - https://github.com/mtownsend5512/xml-to-array
Run with global server-
php artisan serve
ngrok http 8000