コード例 #1
0
 public function run()
 {
     Eloquent::unguard();
     #DB::table('page_categories')->delete();
     PageCategory::create(array('id' => 1, 'name' => 'Páginas', 'type' => PageCategory::PAGE, 'created_at' => new DateTime(), 'updated_at' => new DateTime()));
 }
コード例 #2
0
 public function run()
 {
     Eloquent::unguard();
     PageCategory::create(array('name' => 'Portifólio', 'type' => PageCategory::PORTFOLIO, 'created_at' => new DateTime(), 'updated_at' => new DateTime()));
 }
コード例 #3
0
 public function run()
 {
     Eloquent::unguard();
     PageCategory::create(array('name' => 'Notícias', 'type' => PageCategory::NEWS, 'created_at' => new DateTime(), 'updated_at' => new DateTime()));
 }