Laravel-filemanager: Trying to get property of non-object

Created on 28 Jul 2017  路  3Comments  路  Source: UniSharp/laravel-filemanager

I would like to ask how this solution has been through auth, will appear the following error
image

Most helpful comment

what was the problem. i am also getting same error . it was work fine, i think after composer update it happen .

ahh its working . have to pass user id in 'ConfigHandler '. because i am using different auth package

All 3 comments

line 9 in ConfigHandler.php is

return auth()->user()->id;

When multi-user mode enabled, FileManager needs to identify the user to restrict access to the owned folder.
Looks like it has failed to retrieve the user.

what was the problem. i am also getting same error . it was work fine, i think after composer update it happen .

ahh its working . have to pass user id in 'ConfigHandler '. because i am using different auth package

I've got the same error with laravel 5.4,
You should go to app/config/lfm and set the 'allow_multi_user' => false, .
hope it helps!

Was this page helpful?
0 / 5 - 0 ratings