Outils pour utilisateurs

Outils du site


informatique:php:laravel

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
informatique:php:laravel [11/06/2025 10:11] – [Laravel] cyrilleinformatique:php:laravel [21/10/2025 22:43] (Version actuelle) – [Installation] cyrille
Ligne 7: Ligne 7:
  
 ===== Installation ===== ===== Installation =====
 +
 +==== Version 1 ====
  
 Plusieurs façons d'installer Laravel: Plusieurs façons d'installer Laravel:
Ligne 41: Ligne 43:
 </code> </code>
  
-Autres starter-kits:+==== Version 2 ==== 
 + 
 +<code> 
 +## Install with sail 
 + 
 +```bash 
 +# curl -s "https://laravel.build/<project name>?with=mariadb,redis,selenium,mailpit&devcontainer" | bash 
 + 
 +curl -s "https://laravel.build/mon-projet-app?with=mariadb,redis" | bash 
 + 
 +latest: Pulling from laravelsail/php84-composer 
 +Digest: sha256:a2716e93e577c80bca7551126056446c1e06cb141af652ee6932537158108400 
 +Status: Image is up to date for laravelsail/php84-composer:latest 
 +   WARN  TTY mode requires /dev/tty to be read/writable. 
 + 
 +    Creating a "laravel/laravel" project at "./financial-stocks-market-app" 
 +    Installing laravel/laravel (v12.9.0) 
 +    ... 
 +``` 
 + 
 +## edit .env 
 + 
 +pour éviter conflit avec serveurs locaux, droits utilisateurs... 
 + 
 +WWWGROUP=1001 
 +WWWUSER=1001 
 +APP_PORT=3000 
 +FORWARD_DB_PORT=3308 
 + 
 +DB_DATABASE=financial-stocks-market 
 +DB_USERNAME=root 
 +DB_PASSWORD=root 
 + 
 +SESSION_DRIVER=redis 
 +CACHE_STORE=redis 
 + 
 +## util 
 + 
 +ln -s vendor/bin/sail ./sail 
 + 
 +## Config docker 
 + 
 +Pour modifier la config docker 
 + 
 +``` 
 +./sail up -d 
 +./sail artisan sail:publish 
 +./sail down 
 +``` 
 + 
 +## Activer supervisord dans docker/8.4/supervisord.conf 
 + 
 +[program:horizon] 
 +command=/usr/bin/php /var/www/html/artisan horizon 
 +autostart=true 
 +autorestart=true 
 +user=sail 
 +redirect_stderr=true 
 +stdout_logfile=/var/www/html/storage/logs/horizon.log 
 +stopwaitsecs=360 
 + 
 +## Reconstruire les containers dockers et relancer sail 
 + 
 +./sail build 
 +./sail up -d 
 + 
 +## Horizon to view queue workers 
 + 
 +./sail composer require laravel/horizon 
 +./sail artisan horizon:install 
 + 
 +## debugbar 
 + 
 +./sail composer require barryvdh/laravel-debugbar --dev 
 + 
 +## filament 
 + 
 +./sail composer require filament/filament:"^4.0" --update-with-all-dependencies 
 +./sail artisan filament:install --panels 
 + 
 +## create database tables 
 + 
 +./sail artisan migrate:fresh 
 + 
 +## filamanent user 
 + 
 +./sail artisan make:filament-user --name="SuperMan" --email="superman@internet.eu" --password="secret123" 
 + 
 +## javascript stuff 
 + 
 +./sail npm install 
 +./sail npm run build 
 + 
 +## Yeah! 
 + 
 +- http://localhost:3000/ 
 +- http://localhost:3000/admin 
 +</code> 
 + 
 +==== Autres starter-kits ==== 
   * [[https://laraveldaily.com/post/how-to-install-laravel-breeze-laravel-12|How to (Still) Use Laravel Breeze in Laravel 12]]   * [[https://laraveldaily.com/post/how-to-install-laravel-breeze-laravel-12|How to (Still) Use Laravel Breeze in Laravel 12]]
   * [[https://github.com/LaravelDaily/starter-kit|Blade Starter Kit]]   * [[https://github.com/LaravelDaily/starter-kit|Blade Starter Kit]]
  
informatique/php/laravel.1749629500.txt.gz · Dernière modification : de cyrille

Sauf mention contraire, le contenu de ce wiki est placé sous les termes de la licence suivante : CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki