Skip to content

Commit b021463

Browse files
author
songzou
committed
update readme
1 parent 669fe05 commit b021463

File tree

2 files changed

+2
-23
lines changed

2 files changed

+2
-23
lines changed

README.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff 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

src/HelpersServiceProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)