Skip to content

Commit

Permalink
Merge pull request #244 from ZiNETHQ/master
Browse files Browse the repository at this point in the history
Change session()->put to session()->flash in middleware
  • Loading branch information
kaidesu authored Sep 28, 2016
2 parents 2950151 + f111f32 commit c375109
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 c375109

Please sign in to comment.