Created
February 6, 2017 15:58
-
-
Save elgamine-dev/49c184111265a941c26c52540f71ca0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Installer laravel installer (il peut vous manquer le paquet php7.0-zip ) | |
- Génerez une nouvelle app `laravel new panierdefruits` | |
- Créez une nouvelle migration à l'aide d'artisan | |
- Créeez votre BDD avec dbninja ou l'utilitaire mysql | |
- Complétez la migration précédemment créée qui se trouve dans le dossier `database/migrations` | |
- Lancez la migration à l'aide d'artisan | |
- Créez le modèle Product à l'aide d'artisan | |
- Créez le controller ProductController à l'aide d'artisan | |
- Ajoutez une méthode getIndex à ProductController | |
- Dans cette méthode chargez tous les produits et passez les à la vue | |
- Créez la vue | |
TADA ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment