sky

On this page

Custom Models

you can override all the models in the configuration guid

first create a new model:

1php artisan make:model Post

edit the new file to extend zeus post model:

1extend \LaraZeus\Sky\Models\Post

and set it in the config.

author model

by default Sky uses the default user model available in laravel: auth.providers.users.model

to use other model you can overwrite the auth relation

for example to use LDAPRecord.

the belongs to relation needs to look back at the database model rather than the LDAP model.

1public function author(): BelongsTo
2{
3 return $this->belongsTo(config('auth.providers.authors.model'), 'user_id', 'id');
4}

Zeus is an open-source project. Thanks to my sponsors for helping me maintain this project.