- laravel framework upgrade frpm 7.x to 8. see also: https://laravel.com/docs/8.x/upgrade#assert-exact-json-method
- use PHP7 null coalesce operator instead of laravel optional method - change Breadcrumbs::register method to Bredcrumbs::for method - composer updates
This commit is contained in:
parent
1b2e77d907
commit
8ea540a88c
50 changed files with 616 additions and 263 deletions
79
database/seeders/LanguagesTableSeeder.php
Normal file
79
database/seeders/LanguagesTableSeeder.php
Normal file
|
@ -0,0 +1,79 @@
|
|||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
// use Carbon\Carbon;
|
||||
// use Database\DisableForeignKeys;
|
||||
// use Database\TruncateTable;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class LanguagesTableSeeder extends Seeder
|
||||
{
|
||||
public function run()
|
||||
{
|
||||
// DB::table('users')->delete();
|
||||
|
||||
// User::create([
|
||||
// 'name' => str_random(10),
|
||||
// 'email' => 'foo@gmail.com',
|
||||
// 'password' => bcrypt('secret')
|
||||
// ]);
|
||||
DB::table('languages')->insert([
|
||||
[
|
||||
'part2_b' => 'ger',
|
||||
'part2_t' => 'deu',
|
||||
'part1' => 'de',
|
||||
'scope' => 'I',
|
||||
'type' => 'L',
|
||||
'ref_name' => 'German',
|
||||
'active' =>true,
|
||||
],
|
||||
[
|
||||
'part2_b' => 'eng',
|
||||
'part2_t' => 'eng',
|
||||
'part1' => 'en',
|
||||
'scope' => 'I',
|
||||
'type' => 'L',
|
||||
'ref_name' => 'English',
|
||||
'active' =>true,
|
||||
],
|
||||
[
|
||||
'part2_b' => 'ita',
|
||||
'part2_t' => 'ita',
|
||||
'part1' => 'it',
|
||||
'scope' => 'I',
|
||||
'type' => 'L',
|
||||
'ref_name' => 'Italian',
|
||||
'active' =>false,
|
||||
],
|
||||
[
|
||||
'part2_b' => 'fre',
|
||||
'part2_t' => 'fra',
|
||||
'part1' => 'fr',
|
||||
'scope' => 'I',
|
||||
'type' => 'L',
|
||||
'ref_name' => 'French',
|
||||
'active' =>false,
|
||||
],
|
||||
[
|
||||
'part2_b' => 'rus',
|
||||
'part2_t' => 'rus',
|
||||
'part1' => 'ru',
|
||||
'scope' => 'I',
|
||||
'type' => 'L',
|
||||
'ref_name' => 'Russian',
|
||||
'active' =>false,
|
||||
],
|
||||
[
|
||||
'part2_b' => 'spa',
|
||||
'part2_t' => 'spa',
|
||||
'part1' => 'es',
|
||||
'scope' => 'I',
|
||||
'type' => 'L',
|
||||
'ref_name' => 'Spanish',
|
||||
'active' =>false,
|
||||
],
|
||||
]);
|
||||
}
|
||||
}
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue