From 92616c6ae34c92801c22c1030a6fdcc166b8621f Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 24 Jan 2016 16:05:14 +0100 Subject: [PATCH] New test data with required role. --- database/seeds/TestDataSeeder.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/database/seeds/TestDataSeeder.php b/database/seeds/TestDataSeeder.php index 1f59ddd08f..006a912516 100644 --- a/database/seeds/TestDataSeeder.php +++ b/database/seeds/TestDataSeeder.php @@ -10,6 +10,7 @@ use FireflyIII\Models\BudgetLimit; use FireflyIII\Models\Category; use FireflyIII\Models\PiggyBank; use FireflyIII\Models\PiggyBankEvent; +use FireflyIII\Models\Role; use FireflyIII\Models\Transaction; use FireflyIII\Models\TransactionJournal; 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]); $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. $this->createAssetAccounts($user);