🗃️ Ajouter un seeder de post pour tester
This commit is contained in:
1 parent
6ef79c10dd
commit
a7c8276aff
2 files changed
+33
No files matched your search
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class PostsTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$users = factory(App\Post::class, 100)->create();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user