Skip to content

Commit

Permalink
Improve readme
Browse files Browse the repository at this point in the history
  • Loading branch information
antonkomarev committed Mar 9, 2024
1 parent 807c30a commit 2437fd5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ First, pull in the package through Composer.
composer require cybercog/laravel-ownership
```

And then include the service provider within `app/config/app.php`.
#### Register Package Manually (optional)

If you disabled package auto-discovery you can register it manually.

Include the service provider within `app/config/app.php`.

```php
'providers' => [
Expand Down Expand Up @@ -119,7 +123,7 @@ Schema::table('articles', function (Blueprint $table) {

#### Overwrite strict ownership owner's foreign key

By default owner model will be the same as `config('auth.providers.users.model')` provides.
By default, owner model will be the same as `config('auth.providers.users.model')` provides.

To override default owner model in strict ownership, it's primary key or foreign key extend your ownable model with additional attributes:

Expand Down

0 comments on commit 2437fd5

Please sign in to comment.