Je suis ce tutoriel : http://fideloper.com/post/41750468389/laravel-4-uber-quick-start-with-auth-guide?utm_source=nettuts&utm_medium=article&utm_content=api&utm_campaign=guest_author
Et ce tutoriel : http://laravelbook.com/laravel-database-seeding/
Mais, quand j'essaie de lancer php artisan db:seed
rien ne se passe.
J'essaie ça :
<?php
// app/database/seeds/groups.php
return array(
'table' => 'groups',
array(
'name' => 'Administrador',
'description' => '<p>Permissão total no sistema</p>',
'created_at' => new DateTime,
'updated_at' => new DateTime
),
array(
'name' => 'Moderadores',
'description' => '<p>Podem apenas postar e moderar comentários</p>',
'created_at' => new DateTime,
'updated_at' => new DateTime
)
);
Et suivant : php artisan db:seed
.
php artisan db:seed --env=local
Database seeded!
Mais :
mysql> select * from groups;
Empty set (0.00 sec)