Skip to content

Commit 16fb0ea

Browse files
committed
add installation instructions
1 parent decd003 commit 16fb0ea

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

README.md

+23-5
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,31 @@ You can install the package via composer:
3131
$ composer require spatie/laravel-permission
3232
```
3333

34-
## Usage
34+
This service provider must be installed.
35+
```php
36+
// config/app.php
37+
'providers' => [
38+
...
39+
Spatie\Permission\PermissionServiceProvider::class,
40+
];
41+
```
42+
43+
You can publish the migration with:
44+
```bash
45+
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider" --tag="migrations"
46+
```
3547

36-
``` php
37-
$skeleton = new Spatie\Skeleton();
38-
echo $skeleton->echoPhrase('Hello, Spatie!');
48+
After the migration has been published you can create the role- and permission-tables by
49+
running the migrations:
50+
51+
```bash
52+
php artisan migrate
3953
```
4054

55+
## Usage
56+
57+
58+
4159
## Change log
4260

4361
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
@@ -54,7 +72,7 @@ Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
5472

5573
## Security
5674

57-
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
75+
If you discover any security related issues, please email [[email protected]](mailto:[email protected]) instead of using the issue tracker.
5876

5977
## Credits
6078

0 commit comments

Comments
 (0)