Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Attachment->user() won't work #5

Open
ghost opened this issue Jul 21, 2016 · 0 comments
Open

Attachment->user() won't work #5

ghost opened this issue Jul 21, 2016 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 21, 2016

Since method Attachment->user() uses config('filer.user.model') to get the related user model class, the published config file should also provide a related entry like

    'user' => [
        'model' => App\User::class,
    ],

or something similar. Otherwise the use of the method will raise an execption

FatalErrorException in Model.php line 765: Class name must be a valid object or a string

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants