Development Articles, Tutorials & More

Laravel execute artisan commands from controller

Laravel execute artisan commands from controller Commands for clear application cache php artisan cache:clearphp artisan view:clearphp artisan route:clearphp artisan clear-compiledphp artisan config:cache Call above commands in controller click for more Laravel codes read about laravel artisan commands

Laravel export excel files

Laravel export excel files Download PhpSpreadsheet from official website(use composer method). Paste the downloaded folder at app/Http/Helpers folder. Create a Function in Controller and include and use the downloaded sdk. click for more Laravel codes