Add (article): ai gen, front views
This commit is contained in:
23
database/seeders/AuthorSeeder.php
Normal file
23
database/seeders/AuthorSeeder.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\Author;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class AuthorSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
Author::create([
|
||||
'name' => 'EchoScoop Team',
|
||||
'bio' => null,
|
||||
'avatar' => null,
|
||||
'enabled' => true, // Assuming you want this author to be enabled by default
|
||||
'public' => true, // Assuming you want this author to be public by default
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user