I am using Laravel 5.5 on shared hosting, so I have the public directory as the base with all the Laravel files in a sub directory called Laravel.
Everything works OK except uploading an image. It is not giving any error messages, but when I look for the image there is the name without an image itself.
I have placed an exception in the middleware csrf:
protected $except = [ 'laravel-filemanager/*' ];
When I upload it is saying the Url of the image is http://coyneproperties.co.uk/laravel-filemanager/photos/1/electrichybrid.png, for example.
In app/Providers/AppServiceProvider.php I have this code:
public function register() { $this->app->bind('path.public', function() { return base_path('/../public_html'); }); }
but it simply is not uploading anything to the right place.
I have not changed anything in the lfm.php file.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire