Guest User

Untitled

a guest
Jun 28th, 2014
1,526
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public function up()
  2. {
  3.     Schema::create('lang', function($t){
  4.         $t->increments();
  5.         $t->string('url');
  6.         $t->string('local');
  7.         $t->string('name');
  8.         $t->int('default')
  9.         ->default(0);
  10.     $t->timestamps();
  11.     });
  12.     Lang::create(['url' => 'en', 'local' => 'en-EN', 'name' => 'English', 'default' => 0]);
  13.     Lang::create(['url' => 'ru', 'local' => 'ru-RU', 'name' => 'Русский', 'default' => 1]);
  14. }
  15.  
  16. public function down()
  17. {
  18.   Schema::drop('lang');
  19. }
RAW Paste Data