File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 11<?php namespace App \Repositories ;
22
33use App \Models \User , App \Models \Role ;
4- use File , Auth ;
4+ use File ;
55
66class UserRepository extends BaseRepository{
77
@@ -210,7 +210,7 @@ public function getStatut()
210210 */
211211 public function getName ()
212212 {
213- $ name = strtolower (strtr (utf8_decode (Auth:: user ()->username ),
213+ $ name = strtolower (strtr (utf8_decode (auth ()-> user ()->username ),
214214 utf8_decode ('àáâãäçèéêëìíîïñòóôõöùúûüýÿÀÁÂÃÄÇÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛÜÝ ' ),
215215 'aaaaaceeeeiiiinooooouuuuyyAAAAACEEEEIIIINOOOOOUUUUY '
216216 ));
Original file line number Diff line number Diff line change 11<?php namespace App \Services ;
22
3- use Auth ;
4-
53class Statut {
64
75 /**
@@ -34,7 +32,7 @@ public function setStatut()
3432 {
3533 if (!session ()->has ('statut ' ))
3634 {
37- session ()->put ('statut ' , Auth:: check () ? Auth:: user ()->role ->slug : 'visitor ' );
35+ session ()->put ('statut ' , auth ()-> check () ? auth ()-> user ()->role ->slug : 'visitor ' );
3836 }
3937 }
4038
Original file line number Diff line number Diff line change 5656 <ul class =" nav navbar-right top-nav" >
5757 <li >{!! link_to_route (' home' , trans (' back/admin.home' )) ! !} </li >
5858 <li class =" dropdown" >
59- <a href =" #" class =" dropdown-toggle" data-toggle =" dropdown" ><span class =" fa fa-user" ></span > {{ Auth :: user ()-> username } } <b class =" caret" ></b ></a >
59+ <a href =" #" class =" dropdown-toggle" data-toggle =" dropdown" ><span class =" fa fa-user" ></span > {{ auth () -> user ()-> username } } <b class =" caret" ></b ></a >
6060 <ul class =" dropdown-menu" >
6161 <li >
6262 <a href =" {!! url (' auth/logout' ) ! !}" ><span class =" fa fa-fw fa-power-off" ></span > {{ trans (' back/admin.logout' ) } } </a >
You can’t perform that action at this time.
0 commit comments