File tree Expand file tree Collapse file tree 2 files changed +2
-23
lines changed Expand file tree Collapse file tree 2 files changed +2
-23
lines changed Original file line number Diff line number Diff line change @@ -5,34 +5,11 @@ laravel-admin-ext/helpers
55[ ![ Packagist] ( https://img.shields.io/packagist/l/laravel-admin-ext/helpers.svg?maxAge=2592000 )] ( https://packagist.org/packages/laravel-admin-ext/helpers )
66[ ![ Total Downloads] ( https://img.shields.io/packagist/dt/laravel-admin-ext/helpers.svg?style=flat-square )] ( https://packagist.org/packages/laravel-admin-ext/helpers )
77
8- [ Demo] ( http://120.26.143.106/admin ) use ` username/password:admin/admin `
9-
108## Installation
119
1210```
1311$ composer require laravel-admin-ext/helpers
14- ```
15-
16- Open ` app/Providers/AppServiceProvider.php ` , and call the ` Helpers::boot ` method within the ` boot ` method:
17-
18- ``` php
19- <?php
20-
21- namespace App\Providers;
2212
23- use Encore\Admin\Helpers\Helpers;
24- use Illuminate\Support\ServiceProvider;
25-
26- class AppServiceProvider extends ServiceProvider
27- {
28- public function boot()
29- {
30- Helpers::boot();
31- }
32- }
33- ```
34-
35- ```
3613$ php artisan admin:import helpers
3714```
3815
Original file line number Diff line number Diff line change @@ -12,5 +12,7 @@ class HelpersServiceProvider extends ServiceProvider
1212 public function boot ()
1313 {
1414 $ this ->loadViewsFrom (__DIR__ .'/../resources/views ' , 'laravel-admin-helpers ' );
15+
16+ Helpers::boot ();
1517 }
1618}
You can’t perform that action at this time.
0 commit comments