Skip to content

Commit

Permalink
Changed session()->put to session()->flash. This ensures the module i…
Browse files Browse the repository at this point in the history
…nformation only stays for the duration of the request rather than for the duration of the session. This fixed an issue with having code outside of a module believing it's in a module
  • Loading branch information
drjonnicholson committed Sep 28, 2016
1 parent 2950151 commit f111f32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Middleware/IdentifyModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit f111f32

Please sign in to comment.