I am running Laravel 5.1 in a Centos 6.8 VPS.
The problem is when I simply try to run the command php artisan down it returns an error message saying the following:
[ErrorException]
touch(): Unable to create file /home/myUser/public_html/laravelProject/storage/framework/down because No such file or directory
It looks like its trying to create the "down" file? I don't understand what is going on, perhaps you know what is going on.
Thank you for any help
Related
I have an error below when i try to run the artisan serve in laravel framework. I dont know what is the root cause of the error. It was working before then when i close the connection and rerun it again. i got an error fclose(): Argument #1 ($stream) must be of type resource, bool given
If you delete the vendor folder of your laravel project and if you download it again with comand composer install but you get an error then what you have to do is download composer again from the official website and try the initial procedure.
Web composer
Docker 18.09.2
Mysql 5.7
Laravel 5.7
PHP 7.125
I am new at Laravel and I have a problem When I use php artisan db:seed, this error appeared:
include(/var/www/laravel_app/vendor/composer/../../database/seeds/AdminsTableSeeder.php):
failed to open stream: No such file or directory
at /var/www/laravel_app/vendor/composer/ClassLoader.php:444
440| * Prevents access to $this/self from included files.
441| */
442| function includeFile($file)
443| {
> 444| include $file;
445| }
446|
I have no idea why does it happens.
There was no error when I used php artisan migrate.
I have already tried php artisan migrate --seed and php artisan migrate:refresh --seed.
Can anyone please help me?
You should try using composer dump-autoload.
From this answer in SO:
Basically, because Composer can't see the migration files you are
creating, you are having to run the dump-autoload command which won't
download anything new, but looks for all of the classes it needs to
include again. It just regenerates the list of all classes that need
to be included in the project (autoload_classmap.php), and this is why
your migration is working after you run that command.
I am doing a project in Laravel 5.6 homestead. I got this error after i ran php artisan cache:config, the command ran successfully but after I ran this command and refreshed the url in my browser, I get the following error
Now no routes are opening even the main url ecommerce.test showing this error. Im a Laravel beginer.
Any idea how to solve this???
There is no existing directory at "C:\Laravel_Homestead_Projects\ecommerce\storage\logs" and its not buildable: Protocol error
1)
go to storage\framework\cache and delete anything there is there.
2)
homestead ssh
3)
in your project folder: composer dumpautoload
i had recently installed laravel in windows through composer made a new project named project in my xamp's htdocs folder then run "php artisan serve" comand in cmd but it is giving me error "failed to open stream" here is screenshot here I ran "php artisan serve" comand error is shown in above image I also tried to search my problem on stack overflow but couldn't find any solution that can suit my problem
Most files are missing because you have not successfully installed Laravel.
Go to C:\xampp\htdocs\project> and type composer update --no-scripts or composer install
Since you are using xampp, once all the necessary files and packages are downloaded to your project you should be able to access your site through localhost without running php artisan serve by visiting
http://localhost/project/public
NB:Just ensure xampp is running
please go through the documentation first
https://laravel.com/docs/5.4#installation
you did not installed laravel projects correctly. you did not have vendor files. First you have to run :
composer install
dont need php artisan serve in xampp ... just go to
localhost/your_project/public
hope it helps !!!
I try to host my Laravel application in BlueHost i follow this tutorial LINK
i installed composer succesfully when i create new project in last line im getting this error
i tried php artisan command but its showing same error. can any one help on this Thank You.
This is how i solved my problem after the installation i used
php-cli artisan clear-compiled insted of php artisan clear-compiled
and we can use artisan command like this php-cli artisan ......