diff --git a/src/Middleware/IdentifyModule.php b/src/Middleware/IdentifyModule.php index 0e978fca..ce68fbac 100644 --- a/src/Middleware/IdentifyModule.php +++ b/src/Middleware/IdentifyModule.php @@ -32,7 +32,7 @@ public function __construct(Modules $module) */ public function handle($request, Closure $next, $slug = null) { - $request->session()->put('module', $this->module->where('slug', $slug)); + $request->session()->flash('module', $this->module->where('slug', $slug)); return $next($request); }