Skip to content

Commit

Permalink
Update IdentifyModule.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kaidesu committed Mar 14, 2016
1 parent b1bf144 commit d842715
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 @@ -31,7 +31,7 @@ public function __construct(Modules $module)
*/
public function handle($request, Closure $next, $slug)
{
$request->session()->put('module', $this->module->where('slug', $slug)->toArray());
$request->session()->put('module', $this->module->where('slug', $slug)->first());

return $next($request);
}
Expand Down

0 comments on commit d842715

Please sign in to comment.