variety of premium plugins

Learn More

sky

you are reading the documentation for version v3
to check your version use: composer show lara-zeus/sky

On this page

Custom Models

you can override all the models in the configuration guid

first create a new model:

php artisan make:model Post

edit the new file to extend zeus post model:

extend \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.

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