Commit ad0e7118 authored by Nicolas Widart's avatar Nicolas Widart

Merge commit '24d99222'

* commit '24d99222':
  Squashed 'Modules/User/' changes from 440ce5c..c5fd9da
parents 13d85612 24d99222
<?php namespace Modules\User\Composers;
use Illuminate\Contracts\View\View;
use Modules\Core\Composers\BaseSidebarViewComposer;
class UsernameViewComposer extends BaseSidebarViewComposer
{
public function compose(View $view)
{
$view->with('user', $this->auth->check());
}
}
......@@ -20,7 +20,7 @@
</a>
</div>
</div>
<div class="box">
<div class="box box-info">
<div class="box-header">
</div>
<!-- /.box-header -->
......
......@@ -20,7 +20,7 @@
</a>
</div>
</div>
<div class="box">
<div class="box box-info">
<div class="box-header">
</div>
<!-- /.box-header -->
......
<?php
use Cartalyst\Sentinel\Laravel\Facades\Sentinel;
View::composer('core::partials.sidebar-nav', 'Modules\User\Composers\SidebarViewComposer');
View::composer([
......@@ -7,7 +6,4 @@ View::composer([
'user::admin.partials.permissions-create',
], 'Modules\User\Composers\PermissionsViewComposer');
View::composer(['core::partials.sidebar-nav', 'core::partials.top-nav'], function($view)
{
$view->with('user', Sentinel::check());
});
View::composer(['core::partials.sidebar-nav', 'core::partials.top-nav'], 'Modules\User\Composers\UsernameViewComposer');
# User module
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/304d1d01-3347-4958-915f-b2daabfe5f5a/mini.png)](https://insight.sensiolabs.com/projects/304d1d01-3347-4958-915f-b2daabfe5f5a)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/nWidart-Modules/User/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/nWidart-Modules/User/?branch=master)
[![Code Climate](https://codeclimate.com/github/nWidart-Modules/User/badges/gpa.svg)](https://codeclimate.com/github/nWidart-Modules/User)
This module is responsible for handling the users and roles.
## Installation
This module is loading the the [Pingpong-labs/module](https://github.com/pingpong-labs/modules) package. One way of installing it, is with the `php artisan module:install nWidart-Modules/User` command.
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/AsgardCms/User/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/AsgardCms/User/?branch=master)
[![Code Climate](https://codeclimate.com/github/AsgardCms/User/badges/gpa.svg)](https://codeclimate.com/github/AsgardCms/User)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment