446 commandes partagées

Ta mémoire technique
collaborative

Ne perds plus jamais une commande. Recherche, copie et partage tes solutions techniques en quelques secondes.

CodeBox
446 Commandes
22 Développeurs
99 Technologies

11 résultat(s) pour "migration"

Supprime toutes les tables et relance les migrations.

bash
php artisan migrate:fresh

Annule le dernier batch de migrations.

bash
php artisan migrate:rollback

Annule les 3 derniers batchs de migrations.

bash
php artisan migrate:rollback --step=3

Affiche l'état de chaque migration.

bash
php artisan migrate:status

Génère un Model et sa migration associée.

bash
php artisan make:model NomModel -m

Génère Model, migration, controller resource en une commande.

bash
php artisan make:model NomModel -mcr

Exécute toutes les migrations en attente.

bash
php artisan migrate

Génère un fichier de migration.

bash
php artisan make:migration create_nom_table_table

Crée la table pour stocker les jobs échoués.

bash
php artisan queue:failed-table && php artisan migrate

Publie les fichiers d'un package (config, migrations, vues).

bash
php artisan vendor:publish --provider="Vendor\Package\ServiceProvider"

Génère une migration pour modifier une table existante.

bash
php artisan make:migration add_colonne_to_table_table --table=table