Initial commit to new repo
This commit is contained in:
parent
a267f9bfcc
commit
a5173c981b
292 changed files with 17472 additions and 0 deletions
23
database/seeds/ArticlesTableSeeder.php
Normal file
23
database/seeds/ArticlesTableSeeder.php
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class ArticlesTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
DB::table('articles')->insert([
|
||||
'titleurl' => 'my-new-blog',
|
||||
'title' => 'My New Blog',
|
||||
'main' => 'This is my new blog. It uses `Markdown`.',
|
||||
'published' => 1,
|
||||
'created_at' => '2016-01-12 15:51:01',
|
||||
'updated_at' => '2016-01-12 15:51:01',
|
||||
]);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue