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
5
5
[ ![ Packagist] ( https://img.shields.io/packagist/l/laravel-admin-ext/helpers.svg?maxAge=2592000 )] ( https://packagist.org/packages/laravel-admin-ext/helpers )
6
6
[ ![ Total Downloads] ( https://img.shields.io/packagist/dt/laravel-admin-ext/helpers.svg?style=flat-square )] ( https://packagist.org/packages/laravel-admin-ext/helpers )
7
7
8
- [ Demo] ( http://120.26.143.106/admin ) use ` username/password:admin/admin `
9
-
10
8
## Installation
11
9
12
10
```
13
11
$ 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;
22
12
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
- ```
36
13
$ php artisan admin:import helpers
37
14
```
38
15
Original file line number Diff line number Diff line change @@ -12,5 +12,7 @@ class HelpersServiceProvider extends ServiceProvider
12
12
public function boot ()
13
13
{
14
14
$ this ->loadViewsFrom (__DIR__ .'/../resources/views ' , 'laravel-admin-helpers ' );
15
+
16
+ Helpers::boot ();
15
17
}
16
18
}
You can’t perform that action at this time.
0 commit comments