24 lines
534 B
PHP
24 lines
534 B
PHP
<?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
|
|
]);
|
|
}
|
|
}
|