How to do optimization in Laravel

Production environment

php artisan optimize

Local development

php artisan optimize:clear