From 11f99a963ad586fa722a61c63cd5d3e3d0a14039 Mon Sep 17 00:00:00 2001 From: snipe Date: Sat, 7 Oct 2017 08:03:08 -0700 Subject: [PATCH 1/2] Removed extra comma in demo warning --- resources/lang/en/general.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lang/en/general.php b/resources/lang/en/general.php index bd5e73b2f..55f238140 100644 --- a/resources/lang/en/general.php +++ b/resources/lang/en/general.php @@ -167,7 +167,7 @@ 'settings' => 'Settings', 'sign_in' => 'Sign in', 'signature' => 'Signature', - 'some_features_disabled' => 'DEMO MODE: Some features are disabled for this installation, and the data in this system will reset daily.', + 'some_features_disabled' => 'DEMO MODE: Some features are disabled for this installation and the data in this system will reset daily.', 'site_name' => 'Site Name', 'state' => 'State', 'status_labels' => 'Status Labels', From 9f2fc21649e2c5b603151971ca49fa5730039069 Mon Sep 17 00:00:00 2001 From: snipe Date: Sat, 7 Oct 2017 08:17:38 -0700 Subject: [PATCH 2/2] =?UTF-8?q?I=20guess=20we=20don=E2=80=99t=20need=20to?= =?UTF-8?q?=20manually=20create=20the=20license=20seats?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- database/factories/LicenseFactory.php | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/database/factories/LicenseFactory.php b/database/factories/LicenseFactory.php index 05668da39..20ad9c536 100644 --- a/database/factories/LicenseFactory.php +++ b/database/factories/LicenseFactory.php @@ -30,13 +30,6 @@ $factory->state(App\Models\License::class, 'photoshop', function ($faker) { 'purchase_cost' => '299.99', 'seats' => 10, ]; - - - for ($x = 0; $x < $data['seats']; $x++) { - $seat = new App\Models\LicenseSeat; - $seat->license_id = 1; - $seat->create(); - } return $data; @@ -51,12 +44,7 @@ $factory->state(App\Models\License::class, 'acrobat', function ($faker) { 'purchase_cost' => '29.99', 'seats' => 10, ]; - - for ($x = 0; $x < $data['seats']; $x++) { - $seat = new App\Models\LicenseSeat; - $seat->license_id = 2; - $seat->create(); - } + return $data; }); @@ -69,12 +57,7 @@ $factory->state(App\Models\License::class, 'indesign', function ($faker) { 'purchase_cost' => '199.99', 'seats' => 10, ]; - - for ($x = 0; $x < $data['seats']; $x++) { - $seat = new App\Models\LicenseSeat; - $seat->license_id = 3; - $seat->create(); - } + return $data; }); @@ -89,11 +72,6 @@ $factory->state(App\Models\License::class, 'office', function ($faker) { 'seats' => 20, ]; - for ($x = 0; $x < $data['seats']; $x++) { - $seat = new App\Models\LicenseSeat; - $seat->license_id = 4; - $seat->create(); - } return $data; });