memo-laravel
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| memo-laravel [2024/02/18 22:04] – dunon | memo-laravel [2024/02/18 22:30] (Version actuelle) – dunon | ||
|---|---|---|---|
| Ligne 38: | Ligne 38: | ||
| '' | '' | ||
| + | |||
| + | Créer un fichier de migration : | ||
| + | |||
| + | '' | ||
| Installer Voyager : | Installer Voyager : | ||
| Ligne 49: | Ligne 53: | ||
| '' | '' | ||
| - | Création de table, migration : | + | Création de table, migration |
| < | < | ||
| Ligne 57: | Ligne 61: | ||
| $table-> | $table-> | ||
| $table-> | $table-> | ||
| - | $table->type(' | + | $table->string(' |
| $table-> | $table-> | ||
| $table-> | $table-> | ||
| Ligne 63: | Ligne 67: | ||
| } | } | ||
| </ | </ | ||
| + | |||
| + | app/ | ||
| + | |||
| + | |||
| + | < | ||
| + | class Nommodele extends Model | ||
| + | { | ||
| + | protected $fillable = [ | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | ]; | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | Appliquer les migrations : | ||
| + | |||
| + | '' | ||
memo-laravel.1708293890.txt.gz · Dernière modification : de dunon
