You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
11
+
This package helps you to quickly create strong policy authorization logic in your Laravel application with minimal effort. In most cases the defaults will be just enough and all you'd need to do is
We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).
26
+
This is the contents of the published config file:
20
27
21
-
## Installation
28
+
```php
29
+
return [
30
+
'permissions' => [
31
+
'create',
32
+
'update',
33
+
'delete',
34
+
'view all',
35
+
'view',
36
+
'force delete',
37
+
'restore',
38
+
],
39
+
];
40
+
```
22
41
23
-
You can install the package via composer:
42
+
## Setup
43
+
44
+
This package depends on the [spatie/laravel-permission](https://github.com/spatie/laravel-permission) package. It's installed automatically when you install this package.
45
+
46
+
To setup the package all you need to is run the following command:
This will generate all the CRUD permissions for one specific model. You can add additional permission to be generated by adding them to the config file in `config/authorizer.php`
215
+
216
+
Or you can just generate for all the models
56
217
57
218
```php
58
-
$laravelAuthorizer = new FlixtechsLabs\LaravelAuthorizer();
0 commit comments