#model

6 commande(s) avec le tag #model

Commandes partagées par la communauté CodeBox, copiables en un clic.

Laravel Créer un Model

Génère un Eloquent Model.

bash
php artisan make:model NomModel

Génère un Observer pour les événements Eloquent.

bash
php artisan make:observer NomObserver --model=NomModel

Génère une classe TypeScript.

bash
ng g class models/user

Affiche les informations du modèle (colonnes, relations, scopes).

bash
php artisan model:show NomModel

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

bash
php artisan make:model NomModel -mcr

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

bash
php artisan make:model NomModel -m