From 2ebf32b96e38ac1d942e0e996736f8a5f81069b7 Mon Sep 17 00:00:00 2001 From: Manish Verma Date: Tue, 18 Sep 2018 19:01:08 +0530 Subject: [PATCH] Bug fix patch - Fixed Session::set issue reported on Bugnsag added exapmle.env again --- .../Admin/helpdesk/FormController.php | 2 +- example.env | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 example.env diff --git a/app/Http/Controllers/Admin/helpdesk/FormController.php b/app/Http/Controllers/Admin/helpdesk/FormController.php index 833206fa2..363fd524f 100644 --- a/app/Http/Controllers/Admin/helpdesk/FormController.php +++ b/app/Http/Controllers/Admin/helpdesk/FormController.php @@ -615,7 +615,7 @@ class FormController extends Controller { $form = self::getSession(); $form++; - \Session::set('fromid', $form); + \Session::put('fromid', $form); } public static function getSession() diff --git a/example.env b/example.env new file mode 100644 index 000000000..d6b88a59d --- /dev/null +++ b/example.env @@ -0,0 +1,18 @@ +APP_ENV=production +APP_DEBUG=false +APP_KEY=SomeRandomString +DB_TYPE= +DB_HOST= +DB_PORT= +DB_DATABASE= +DB_USERNAME= +DB_PASSWORD= +DB_INSTALL=%0% +MAIL_DRIVER=smtp +MAIL_HOST=mailtrap.io +MAIL_PORT=2525 +MAIL_USERNAME=null +MAIL_PASSWORD=null +CACHE_DRIVER=file +SESSION_DRIVER=file +QUEUE_DRIVER=sync \ No newline at end of file