Skip to content

Commit

Permalink
Fixed an error in installation document (#1874)
Browse files Browse the repository at this point in the history
  • Loading branch information
georgyKurian authored Aug 15, 2024
1 parent 5e05dc6 commit 46fe0d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/core/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@ You may need to update your app's `composer.json` to set `"minimum-stability": "

### Add the LunarUser Trait

Some parts of the core rely on the `User` model having certain relationships set up. We've bundled these into a trait which you must add to any models that represent users in your database.
Some parts of the core rely on the User model having certain relationships set up. We have bundled these into a trait and an interface, which you must add to any models that represent users in your database.

```php
use Lunar\Base\Traits\LunarUser;
use Lunar\Base\LunarUser as LunarUserInterface;
// ...

class User extends Authenticatable
class User extends Authenticatable implements LunarUserInterface
{
use LunarUser;
// ...
Expand Down

0 comments on commit 46fe0d9

Please sign in to comment.