Well… I figured out what was going on.
File::exists(public_path() . "/video/$user")
is looking for this:
/home/ubuntu/workspace/site/public/video/N
And Storage::makeDirectory(public_path() . "/video/$user")
is creating a directory in:
/home/ubuntu/workspace/site/storage/app/public/video/N
So I can go to site/config/filesystems.php and change the routes for app and app/public ; you can check them by using the helper storage_path('app')
.
But, instead, I decided to save the videos in the storage/app/public/video and storage/app/public/thumbnails, and I am getting some package’s error.
But, both paths are writable and should be working by now.
Related Posts:
- How to set 777 permission on a particular folder? [closed]
- count() parameter must be an array or an object that implements countable in laravel
- PDOException SQLSTATE[HY000] [2002] No such file or directory
- PDOException SQLSTATE[HY000] [2002] No such file or directory
- Expected status code 200 but received 500
- laravel updateOrCreate method
- How to listen messageSent event in laravel 5.5
- Could not open input file: artisan
- When to generate a new Application Key in Laravel?
- What is Options +FollowSymLinks?
- Unable to locate package libapache2-mod-php7
- Package php5 have no installation candidate (Ubuntu 16.04)
- Trying to get property of non-object – Laravel 5
- NotFoundHttpException in RouteCollection.php line 161: in laravel 5
- No Application Encryption Key Has Been Specified
- Laravel 5 Class ‘Collective\Html\HtmlServiceProvider’ not found on AWS
- Laravel 5 MethodNotAllowedHttpException in RouteCollection.php line 201:
- Why do I have to run “composer dump-autoload” command to make migrations work in laravel?
- How to Create Multiple Where Clause Query Using Laravel Eloquent?
- Laravel 5 Clear Views Cache
- Changing permissions via chmod at runtime errors with “Operation not permitted”
- cURL request in Laravel
- Laravel – Model Class not found
- No query results for model [App\Products] Laravel
- PHP: fopen() Permission denied
- Getting a 500 Internal Server Error on Laravel 5+ Ubuntu 14.04
- How to force Laravel Project to use HTTPS for all routes?
- Undefined function mysql_connect()
- count() parameter must be an array or an object that implements countable in laravel
- regex match any whitespace
- PHP page redirect
- How do I resolve a HTTP 414 “Request URI too long” error?
- xajax expanding list query
- Data source name not found, and no default driver specified
- Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, object given in
- How do I redirect a page in jQuery?
- Fatal error: Call to undefined function mysqli_connect()
- Illegal string offset Warning PHP
- What’s the purpose of ini_set() in php? (especially for error reporting)
- Send email with PHP from html form on submit with the same script
- Forbidden :You don’t have permission to access /phpmyadmin on this server
- Illegal string offset Warning PHP
- How do I run a file on localhost?
- How to call a JavaScript function from PHP?
- Print array to a file
- I have a string with “\u00a0”, and I need to replace it with “” str_replace fails
- Finding the number of days between two dates
- MySqli Commands out of sync; you can’t run this command now
- Trying to get property of non-object in
- CURL ERROR: Recv failure: Connection reset by peer – PHP Curl
- Fix Access denied for user ‘root’@’localhost’ for phpMyAdmin
- Getting connection failed: php_network_getaddresses: getaddrinfo failed: Name or service not known
- “Cannot send session cache limiter – headers already sent”
- Get Root Directory Path of a PHP project
- How to reformat date in PHP?
- Returning JSON from PHP to JavaScript?
- How to create cron job using PHP?
- Imploding an associative array in PHP
- curl POST format for CURLOPT_POSTFIELDS
- Can’t use method return value in write context
- PHP get domain name
- How to solve “Fatal error: Class ‘MySQLi’ not found”?
- Running a Python script from PHP
- Object of class DateTime could not be converted to string
- HTTP Error 411, The request must be chunked or have a content length
- mysqli::query(): Couldn’t fetch mysqli
- Fatal error: Call to undefined function sqlsrv_connect()
- Easy way to password-protect php page
- Html encode in PHP
- file_put_contents: Failed to open stream, no such file or directory
- PHP $_POST not working?
- PHP cURL HTTP PUT
- Convert timestamp to readable date/time PHP
- PHP sessions that have already been started
- Contact Form 7 – Custom Validation
- How to output JavaScript with PHP
- WRONGTYPE Operation against a key holding the wrong kind of value php
- What is the advantage of using try {} catch {} versus if {} else {}
- Check if URL has certain string with PHP
- Subtracting days, months or years from date using php
- Fatal error: Call to a member function fetch_assoc() on a non-object
- Strict Standards: Only variables should be assigned by reference PHP 5.4
- mysqlworkbench giving version error on exporting database
- Steam Market API?
- PHP array delete by value (not key)
- PHP mail: Multiple recipients?
- Having a problem getting mysqli_query to execute
- Returning JSON from a PHP Script
- PHP Multiple Checkbox Array
- Session variables not working php
- Get JSON object from URL
- How to push both value and key into PHP array
- Find the last element of an array while using a foreach loop in PHP
- Popup window in PHP?
- How can you use php in a javascript function
- How to bypass (deprecated) reCAPTCHA V1?
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ””)’ at line 2
- Plugin can’t write to database even though permissions appear correct?
- 403 (Forbidden) delete file image in themer folder