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
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
i deployed my laravel app to a shared hosting and i got this error
file_put_contents(C:\xampp\htdocs\laravel Projects\bank\iscbank\storage\framework/sessions/qM5STFvAXNcmpuJkllutrtS1PumOi0OXhG7TdNwL): failed to open stream: No such file or directory
i followed all the instructions on how to install laravel app in cpanel.
I dont know if its because i ran these commmands before zipping the project
php artisan cache:clear
php artisan config:clear
i dont know whats wrong or what i did wrong
Do these
Remove files from bootstrap/cache folder
Remove all the files/folder inside from these
storage/framework/cache,
storage/framework/sessions,
storage/framework/views
and try
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 !!!
So I'm new to Laravel and been following the Laracasts series on Laravel.
I cloned an open source Laravel Project, It doesn't have 'Vendor' Directory' , I was told to run 'composer update' in the root of the project to include it.
I do that and I get the error:
[ErrorException]
copy(/home/sanyam/.composer/cache/files/laravel/socialite/fc3ff90cae77020dba2dc23168bebe2313c43051.zip): failed to open stream: Permission denied
I tried to run the website locally and the terminal gave the error:
Class 'Laravel\Socialite\SocialiteServiceProvider' not found in /home/sanyam/projectname-web/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 150
Here is the deal, I can't edit any code in congif/app.php or anywhere because the project is up and running.
The last time it happened, I was missing the curl extension in PHP, installed it and it worked. This time I've tried clearing the cache using composer dump-autoload (doesn't work)
What am I supposed to do ?
Thank you in advance :)
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