Added Swedish languge option

This commit is contained in:
Hillel Coren 2015-04-12 12:38:53 +03:00
parent f9aca82e23
commit a73bdab540

View File

@ -0,0 +1,29 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddSvLanguage extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
DB::table('languages')->insert(['name' => 'Swedish', 'locale' => 'sv']);
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
$language = \App\Models\Language::whereLocale('sv')->first();
$language->delete();
}
}