diff options
author | Marvin Borner | 2018-08-24 13:17:32 +0200 |
---|---|---|
committer | Marvin Borner | 2018-08-24 13:17:32 +0200 |
commit | 0ee38e98532a9daf7ba08ab65b7f73d6505e0aea (patch) | |
tree | 6ff916179bb4ebe14369ea99b84109dc6e52ba13 /database/seeds/PostTypesTableSeeder.php | |
parent | 3045cb39be8b9c9cb3ca6ed643ccceac0042f0c0 (diff) |
Began API for posts
Diffstat (limited to 'database/seeds/PostTypesTableSeeder.php')
-rw-r--r-- | database/seeds/PostTypesTableSeeder.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/database/seeds/PostTypesTableSeeder.php b/database/seeds/PostTypesTableSeeder.php new file mode 100644 index 0000000..d21770b --- /dev/null +++ b/database/seeds/PostTypesTableSeeder.php @@ -0,0 +1,23 @@ +<?php + +use Illuminate\Database\Seeder; +use Illuminate\Database\Eloquent\Model; + +class PostTypesTableSeeder extends Seeder +{ + /** + * Run the database seeds. + * + * @return void + */ + public function run() + { + DB::table('post_types')->insert([ + 'type' => 'Media' + ]); + + DB::table('post_types')->insert([ + 'type' => 'Text' + ]); + } +} |