<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use App\Models\Category;
use Faker\Generator as Faker;

class CategoriesSeeder extends Seeder {

    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run(Faker $faker) {
        $categoriesNames = [
            'Computer science, information and general works',
            'Philosophy and psychology',
            'Religion',
            'Social sciences',
            'Language',
            'Pure Science',
            'Technology',
            'Arts and recreation',
            'Literature',
            'History and geography'
        ];

        foreach ($categoriesNames as $categoryName) {
            Category::create([
                'name' => $categoryName,
                'description' => $faker->realText('255'),
            ]);
        }
    }

}
