Skip to content

Commit 1ad2aaa

Browse files
authored
Merge pull request #96 from bavix/lumen
add doc install lumen framework
2 parents 7ecc390 + 4d21c5d commit 1ad2aaa

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

docs/_sidebar.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
- [Introduction](README)
44
- [Requirements](requirements)
55
- [Installation](installation)
6+
- [Lumen installation](lumen)
67
- [Basic Usage](basic-usage)
78
- [Upgrade Guide](upgrade-guide)
89

docs/lumen.md

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## Composer
2+
3+
The recommended installation method is using [Composer](https://getcomposer.org/).
4+
5+
In your project root just run:
6+
7+
```bash
8+
composer req bavix/laravel-wallet
9+
```
10+
11+
Ensure that you’ve set up your project to [autoload Composer-installed packages](https://getcomposer.org/doc/01-basic-usage.md#autoloading).
12+
13+
## Add the service to the app
14+
15+
[Editing the application file](https://lumen.laravel.com/docs/5.8/providers#registering-providers) `bootstrap/app.php`
16+
```php
17+
$app->register(\Bavix\Wallet\WalletServiceProvider::class);
18+
```
19+
20+
Start the migration and use the library.
21+
22+
## You can use it for customization
23+
24+
Sometimes it is useful...
25+
26+
### Run Migrations
27+
Publish the migrations with this artisan command:
28+
```bash
29+
php artisan vendor:publish --tag=laravel-wallet-migrations
30+
```
31+
32+
### Configuration
33+
You can publish the config file with this artisan command:
34+
```bash
35+
php artisan vendor:publish --tag=laravel-wallet-config
36+
```
37+
38+
After installing the package, you can proceed to [use it](basic-usage).

0 commit comments

Comments
 (0)