Open novayadi85 opened 6 years ago
when i run: php artisan cache:clear
artisan gives me: "LogicException : Your configuration files are not serializable."
upon inspection i see that the ckfinder.php file is not serialized.
php artisan optimize
gives me "LogicException : Your configuration files are not serializable." too.
Cause of callable $config['authentication']
@alexnen post your $config['authentication'] from the config file..
@Yahav sorry, i don't have permissions to this project now. But I remember similar code: ... 'somekey' => function($arg) { return '1'; } ... Seems like CKFinder config had callback functions, and laravel command can't serialize that.
I see, what you should do is set somekey to null or some default value at the config file, and then at the middleware set it dynamically to use your callback.
Example:
config(['ckfinder.authentication' => function() use ($request) { if ($request->user()->hasAnyPermission(['manage files', 'manage images', 'manage podcasts'])) { return true; } return true; }] );
You can now associate the middle class name with the ckfinder.authentication
- if you preview CKSource\CKFinderBridge\Controller\CKFinderController
you will see how it's being used in the constructor.
Couldn't load CKFinder configuration file. Please run
artisan vendor:publish --tag=ckfinder
command first. I've run artisan vendor:publish --tag=ckfinderI got this issue when i have public_path in public_html: +laravel ++blog (here my laravel) +public_html(here my public) How then the right setting?