- 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
49
database/seeders/AccountsSeeder.php
Normal file
49
database/seeders/AccountsSeeder.php
Normal file
|
@ -0,0 +1,49 @@
|
|||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Support\Carbon;
|
||||
// use Database\DisableForeignKeys;
|
||||
// use Database\TruncateTable;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class AccountsTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Seed the application's database.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
|
||||
// \App\Models\User::factory(10)->create();
|
||||
DB::table('accounts')->insert([
|
||||
[
|
||||
'login' => "admin",
|
||||
'email' => "admin@localhost",
|
||||
'password' => bcrypt('secret'),
|
||||
'created_at' => Carbon::now(),
|
||||
],
|
||||
[
|
||||
'login' => "Submitty",
|
||||
'email' => "submitter@localhost",
|
||||
'password' => bcrypt('secret'),
|
||||
'created_at' => Carbon::now(),
|
||||
],
|
||||
[
|
||||
'login' => "Eddy",
|
||||
'email' => "editor@localhost",
|
||||
'password' => bcrypt('secret'),
|
||||
'created_at' => Carbon::now(),
|
||||
],
|
||||
[
|
||||
'login' => "Review",
|
||||
'email' => "review@localhost",
|
||||
'password' => bcrypt('secret'),
|
||||
'created_at' => Carbon::now(),
|
||||
],
|
||||
]);
|
||||
}
|
||||
}
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue