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
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -13,88 +13,90 @@ class CategorySeeder extends Seeder
|
||||
public function run(): void
|
||||
{
|
||||
$categories = [
|
||||
['name' => 'Automotive'],
|
||||
['name' => 'Automotive', 'short_name' => 'Automotive'],
|
||||
[
|
||||
'name' => 'Business',
|
||||
'short_name' => 'Business',
|
||||
'children' => [
|
||||
['name' => 'Trading'],
|
||||
['name' => 'Information Technology'],
|
||||
['name' => 'Marketing'],
|
||||
['name' => 'Office'],
|
||||
['name' => 'Telecommunications'],
|
||||
['name' => 'Trading', 'short_name' => 'Trading'],
|
||||
['name' => 'Information Technology', 'short_name' => 'IT'],
|
||||
['name' => 'Marketing', 'short_name' => 'Marketing'],
|
||||
['name' => 'Office', 'short_name' => 'Office'],
|
||||
['name' => 'Telecommunications', 'short_name' => 'Telecom'],
|
||||
],
|
||||
],
|
||||
[
|
||||
'name' => 'Entertainment',
|
||||
'children' => [
|
||||
['name' => 'Dating'],
|
||||
['name' => 'Film & Television'],
|
||||
['name' => 'Games & Toys'],
|
||||
['name' => 'Music and Video'],
|
||||
['name' => 'Adult Entertainment'],
|
||||
],
|
||||
],
|
||||
['name' => 'Food & Drink'],
|
||||
['name' => 'Food & Drink', 'short_name' => 'Food'],
|
||||
[
|
||||
'name' => 'Hobbies & Gifts',
|
||||
'short_name' => 'Hobbies',
|
||||
'children' => [
|
||||
['name' => 'Collectibles'],
|
||||
['name' => 'Pets'],
|
||||
['name' => 'Photography'],
|
||||
['name' => 'Hunting & Fishing'],
|
||||
['name' => 'Collectibles', 'short_name' => 'Collectibles'],
|
||||
['name' => 'Pets', 'short_name' => 'Pets'],
|
||||
['name' => 'Photography', 'short_name' => 'Photography'],
|
||||
['name' => 'Hunting & Fishing', 'short_name' => 'Hunting'],
|
||||
],
|
||||
],
|
||||
[
|
||||
'name' => 'Education',
|
||||
'children' => [
|
||||
['name' => 'Languages'],
|
||||
],
|
||||
],
|
||||
['name' => 'Law'],
|
||||
['name' => 'Politics'],
|
||||
['name' => 'Law', 'short_name' => 'Law'],
|
||||
['name' => 'Politics', 'short_name' => 'Politics'],
|
||||
[
|
||||
'name' => 'Shopping',
|
||||
'short_name' => 'Shopping',
|
||||
'children' => [
|
||||
['name' => 'Home & Garden'],
|
||||
['name' => 'Clothing & Accessories'],
|
||||
['name' => 'Computer & Electronics'],
|
||||
['name' => 'Home & Garden', 'short_name' => 'Home'],
|
||||
['name' => 'Fashion & Clothing', 'short_name' => 'Fashion'],
|
||||
],
|
||||
],
|
||||
[
|
||||
'name' => 'Religion & Spirituality',
|
||||
'children' => [
|
||||
['name' => 'Holistic Health'],
|
||||
],
|
||||
],
|
||||
['name' => 'Real Estate'],
|
||||
['name' => 'Social Networks'],
|
||||
['name' => 'Real Estate', 'short_name' => 'Real Estate'],
|
||||
[
|
||||
'name' => 'Society',
|
||||
'short_name' => 'Society',
|
||||
'children' => [
|
||||
['name' => 'Family'],
|
||||
['name' => 'Wedding'],
|
||||
['name' => 'Immigration'],
|
||||
['name' => 'Family', 'short_name' => 'Family'],
|
||||
['name' => 'Wedding', 'short_name' => 'Wedding'],
|
||||
['name' => 'Immigration', 'short_name' => 'Immigration'],
|
||||
[
|
||||
'name' => 'Education',
|
||||
'short_name' => 'Education',
|
||||
'children' => [
|
||||
['name' => 'Languages', 'short_name' => 'Languages'],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
[
|
||||
'name' => 'Wellness',
|
||||
'short_name' => 'Wellness',
|
||||
'children' => [
|
||||
['name' => 'Health & Beauty'],
|
||||
['name' => 'Psychology & Psychotherapy'],
|
||||
['name' => 'Health', 'short_name' => 'Health'],
|
||||
['name' => 'Beauty', 'short_name' => 'Beauty'],
|
||||
['name' => 'Psychology', 'short_name' => 'Psychology'],
|
||||
['name' => 'Religion & Spirituality', 'short_name' => 'Religion'],
|
||||
],
|
||||
],
|
||||
[
|
||||
'name' => 'Tips & Tricks',
|
||||
'short_name' => 'Tips',
|
||||
'children' => [
|
||||
['name' => 'How to'],
|
||||
['name' => 'How to', 'short_name' => 'How to'],
|
||||
],
|
||||
],
|
||||
[
|
||||
'name' => 'Travel',
|
||||
'short_name' => 'Travel',
|
||||
'children' => [
|
||||
['name' => 'Holiday'],
|
||||
['name' => 'World Festivals'],
|
||||
['name' => 'Outdoors'],
|
||||
['name' => 'Holiday', 'short_name' => 'Holiday'],
|
||||
['name' => 'World Festivals', 'short_name' => 'Festivals'],
|
||||
['name' => 'Outdoors', 'short_name' => 'Outdoors'],
|
||||
],
|
||||
],
|
||||
[
|
||||
'name' => 'Technology',
|
||||
'short_name' => 'Tech',
|
||||
'children' => [
|
||||
['name' => 'Computer', 'short_name' => 'Computer'],
|
||||
['name' => 'Phones', 'short_name' => 'Phones'],
|
||||
['name' => 'Gadgets', 'short_name' => 'Gadgets'],
|
||||
['name' => 'Social Networks', 'short_name' => 'Social Networks'],
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user