mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-28 09:51:21 -06:00
New test data with required role.
This commit is contained in:
parent
97db618cd8
commit
92616c6ae3
@ -10,6 +10,7 @@ use FireflyIII\Models\BudgetLimit;
|
|||||||
use FireflyIII\Models\Category;
|
use FireflyIII\Models\Category;
|
||||||
use FireflyIII\Models\PiggyBank;
|
use FireflyIII\Models\PiggyBank;
|
||||||
use FireflyIII\Models\PiggyBankEvent;
|
use FireflyIII\Models\PiggyBankEvent;
|
||||||
|
use FireflyIII\Models\Role;
|
||||||
use FireflyIII\Models\Transaction;
|
use FireflyIII\Models\Transaction;
|
||||||
use FireflyIII\Models\TransactionJournal;
|
use FireflyIII\Models\TransactionJournal;
|
||||||
use FireflyIII\User;
|
use FireflyIII\User;
|
||||||
@ -30,6 +31,11 @@ class TestDataSeeder extends Seeder
|
|||||||
$user = User::create(['email' => 'thegrumpydictator@gmail.com', 'password' => bcrypt('james'), 'reset' => null, 'remember_token' => null]);
|
$user = User::create(['email' => 'thegrumpydictator@gmail.com', 'password' => bcrypt('james'), 'reset' => null, 'remember_token' => null]);
|
||||||
$emptyUser = User::create(['email' => 'thegrumpydictator+empty@gmail.com', 'password' => bcrypt('james'), 'reset' => null, 'remember_token' => null]);
|
$emptyUser = User::create(['email' => 'thegrumpydictator+empty@gmail.com', 'password' => bcrypt('james'), 'reset' => null, 'remember_token' => null]);
|
||||||
|
|
||||||
|
|
||||||
|
$admin = Role::where('name', 'owner')->first();
|
||||||
|
$user->attachRole($admin);
|
||||||
|
|
||||||
|
|
||||||
// create asset accounts for user #1.
|
// create asset accounts for user #1.
|
||||||
$this->createAssetAccounts($user);
|
$this->createAssetAccounts($user);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user