Update Otomatis di Laravel 7

By | 11 Mei 2020

MWI – Bagaimana cara untuk update otomatis di Laravel 7, ternyata jawabanya cukup mudah perintahnya-pun hanya 1 baris yaitu:

 composer update laravel/framework --with-dependencies

Misal kalau contoh di aplikasi milik saya jadi seperti ini

php artisan --version
Laravel Framework 7.9.2
❯ composer update laravel/framework --with-dependencies
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 9 updates, 0 removals
  - Updating symfony/polyfill-ctype (v1.15.0 => v1.16.0): Downloading (100%)         
  - Updating symfony/polyfill-mbstring (v1.15.0 => v1.16.0): Downloading (100%)         
  - Updating symfony/polyfill-php72 (v1.15.0 => v1.16.0): Downloading (100%)         
  - Updating symfony/polyfill-intl-idn (v1.15.0 => v1.16.0): Downloading (100%)         
  - Updating symfony/polyfill-php73 (v1.15.0 => v1.16.0): Downloading (100%)         
  - Updating symfony/polyfill-iconv (v1.15.0 => v1.16.0): Downloading (100%)         
  - Updating league/commonmark (1.4.2 => 1.4.3): Loading from cache
  - Updating doctrine/inflector (1.3.1 => 1.4.0): Downloading (100%)         
  - Updating laravel/framework (v7.9.2 => v7.10.3): Downloading (100%)         
Writing lock file
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Discovered Package: barryvdh/laravel-debugbar
Discovered Package: barryvdh/laravel-dompdf
Discovered Package: facade/ignition
Discovered Package: fideloper/proxy
Discovered Package: fruitcake/laravel-cors
Discovered Package: laravel/tinker
Discovered Package: laravel/ui
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Package manifest generated successfully.
❯ php artisan --version
Laravel Framework 7.10.3

Terlihat awalnya versi Laravel Framework 7.9.2 akhirnya menjadi versi Laravel Framework 7.10.3

Demikian tutor sederhana ini. Selamat mencoba dan sukses untuk kita semua. Aamiin. (ms)

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *

This site uses Akismet to reduce spam. Learn how your comment data is processed.