@@ -53,7 +53,7 @@ public function register(): void
5353 $ this ->interfacesBindings ();
5454
5555 // Register user service provider.
56- // $this->app->register(UserServiceProvider::class);
56+ // $this->app->register(UserServiceProvider::class);
5757
5858 // Register the Menu service provider.
5959 $ this ->app ->register (MenuServiceProvider::class);
@@ -72,15 +72,15 @@ protected function registerBladeExtensions($bladeCompiler): void
7272 {
7373 $ bladeMethodWrapper = '\\CodeCoz \\AimAdmin \\AdminServiceProvider::bladeMethodWrapper ' ;
7474
75- $ bladeCompiler ->directive ('hasanypermission ' , fn ($ args ) => "<?php if( {$ bladeMethodWrapper }('hasAnyPermission', {$ args })): ?> " );
76- $ bladeCompiler ->directive ('elsehasanypermission ' , fn ($ args ) => "<?php elseif( {$ bladeMethodWrapper }('hasAnyPermission', {$ args })): ?> " );
77- $ bladeCompiler ->directive ('endhasanypermission ' , fn () => '<?php endif; ?> ' );
75+ $ bladeCompiler ->directive ('hasanypermission ' , fn ($ args ) => "<?php if( {$ bladeMethodWrapper }('hasAnyPermission', {$ args })): ?> " );
76+ $ bladeCompiler ->directive ('elsehasanypermission ' , fn ($ args ) => "<?php elseif( {$ bladeMethodWrapper }('hasAnyPermission', {$ args })): ?> " );
77+ $ bladeCompiler ->directive ('endhasanypermission ' , fn () => '<?php endif; ?> ' );
7878
79- $ bladeCompiler ->directive ('hasrole ' , fn ($ args ) => "<?php if( {$ bladeMethodWrapper }('hasRole', {$ args })): ?> " );
80- $ bladeCompiler ->directive ('endhasrole ' , fn () => '<?php endif; ?> ' );
79+ $ bladeCompiler ->directive ('hasrole ' , fn ($ args ) => "<?php if( {$ bladeMethodWrapper }('hasRole', {$ args })): ?> " );
80+ $ bladeCompiler ->directive ('endhasrole ' , fn () => '<?php endif; ?> ' );
8181
82- $ bladeCompiler ->directive ('hasanyrole ' , fn ($ args ) => "<?php if( {$ bladeMethodWrapper }('hasAnyRole', {$ args })): ?> " );
83- $ bladeCompiler ->directive ('endhasanyrole ' , fn () => '<?php endif; ?> ' );
82+ $ bladeCompiler ->directive ('hasanyrole ' , fn ($ args ) => "<?php if( {$ bladeMethodWrapper }('hasAnyRole', {$ args })): ?> " );
83+ $ bladeCompiler ->directive ('endhasanyrole ' , fn () => '<?php endif; ?> ' );
8484
8585 }
8686
@@ -98,7 +98,7 @@ private function interfacesBindings(): void
9898 {
9999 // Register the service the package provides.
100100 $ this ->app ->singleton ($ this ->packagePrefix , function ($ app ) {
101- return new Admin ;
101+ return new Admin () ;
102102 });
103103
104104 // Register the extra Interfaces to the package provides.
@@ -199,9 +199,9 @@ private function loadMigration(): void
199199 */
200200 private function registerGlobalMiddleware (): void
201201 {
202- // $this->app['router']->aliasMiddleware('role', RoleMiddleware::class);
203- // $this->app['router']->aliasMiddleware('acl', CheckPermission::class);
204- // $this->app['router']->pushMiddlewareToGroup('web', ForcePasswordChange::class);
202+ // $this->app['router']->aliasMiddleware('role', RoleMiddleware::class);
203+ // $this->app['router']->aliasMiddleware('acl', CheckPermission::class);
204+ // $this->app['router']->pushMiddlewareToGroup('web', ForcePasswordChange::class);
205205 }
206206
207207 /**
0 commit comments