You can override the public path using ioc container :
What worked for me flawlessly was adding to public/index.php
the following three lines:
$app->bind('path.public', function() {
return __DIR__;
});
More Related Contents:
- Laravel 5.1, Return response to user, then excute some code [closed]
- How to set up file permissions for Laravel?
- How to pass data to all views in Laravel 5?
- How to query between two dates using Laravel and Eloquent?
- Laravel 5 PDOException Could Not Find Driver
- Laravel Check If Related Model Exists
- How to Get the Query Executed in Laravel 5? DB::getQueryLog() Returning Empty Array
- Laravel Model with Two Primary Keys update [duplicate]
- Laravel: How can I change the default Auth Password field name?
- No Application Encryption Key Has Been Specified
- Access denied for user ‘homestead’@’localhost’ (using password: YES)
- Laravel 5.2 – Use a String as a Custom Primary Key for Eloquent Table becomes 0
- How to change / Custom password field name for Laravel 4 and Laravel 5 user authentication [duplicate]
- Trying to get Laravel 5 email to work
- Access to Laravel 5 app locally from an external device
- How to fix the “Base table or view not found: 1146” error when running ‘php artisan migrate’ command?
- Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255
- ReflectionException: Class ClassName does not exist – Laravel
- Laravel Socialite: InvalidStateException
- How to get client IP address in Laravel 5+
- Prevent Browser’s Back Button Login After Logout in Laravel 5
- Laravel – How to get current user in AppServiceProvider
- My Laravel 5.2.10 Sessions wont persist
- laravel 5.3 new Auth::routes()
- laravel 5 : Class ‘input’ not found
- Laravel changing timezone not reflecting the correct time
- How to remove /public/ from a Laravel URL
- Error 405 (Method Not Allowed) Laravel 5
- Unit Test Laravel’s FormRequest
- find in set in laravel ? example