Skip to content
logo

Kotak Kode Pemograman

Sharing tentang bahasa pemograman

  • WordPress
    • Plugin
  • Tutorial
    • PHP
  • Laravel
  • Tools Webbsite
  • Desain
  • Source Code
  • Web Developer
  • Toggle search form

Deployment Laravel

Posted on 20/06/2024 By kotakkode No Comments on Deployment Laravel
  1. Apply changes to .env file:
    • APP_ENV=production
    • APP_DEBUG=false
  2. Make sure that you are optimizing Composer’s class autoloader map (docs):
    • composer dump-autoload --optimize
    • or along install: composer install --optimize-autoloader --no-dev
    • or during update: composer update --optimize-autoloader
  3. Optimizing Configuration Loading:
    • php artisan config:cache
  4. Discover and cache the application’s events and listeners:
    • php artisan event:cache
  5. Optimizing Route registration:
    • php artisan route:cache
  6. Compile all of the application’s Blade templates:
    • php artisan view:cache
  7. Cache the framework bootstrap files:
    • php artisan optimize
  8. (Optional) Asset Bundling:
    • Using Vite Laravel Plugin (docs): npm run build
    • Using Laravel Mix (docs): npm run production
  9. (Optional) Generate the encryption keys Laravel Passport needs (docs):
    • php artisan passport:keys
  10. (Optional) Start Laravel task scheduler by adding the following Cron entry (docs):
    • * * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1
  11. (Optional) Install, config and start the Supervisor (docs):
  12. (Optional) Create a symbolic link from public/storage to storage/app/public (docs):
    • php artisan storage:link
Laravel

Post navigation

Previous Post: Merubah isi kolom di semua record di tabel laravel
Next Post: Seeder Laravel dari File JSON sekaligus Upload Gambar dari Link Eksternal

Related Posts

Membuat Role Permission di Laravel Laravel
Seeder Laravel gambar langung dari URL Laravel
Cara mencari ID di laravel Controller
Solusi CURL ERROR 60: SSL Certificate Problem di LARAVEL atau di curl PHP Laravel
Contoh Controller Search multi tabel berelasi di laravel Controller
Aplikasi POS laravel Open source Laravel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Copyright © 2026 Kotak Kode Pemograman.

Powered by PressBook Grid Blogs theme