I want to open a Laravel project which I developed few years ago on my Xampp localhost. I copied the folder to Xampp/htdocs/myproject. I installed the composer and laravel too. When I open the project in browser I can't the following error:
InvalidArgumentException in FileViewFinder.php line 137:
View [index] not found.
I also tried to run the php artisan serve command but it does not work. It gives error:
could not open input file: artisan
It is better to clear the app cache after moving the project to other servers. Try these-
php artisan cache:clear
php artisan route:clear
php artisan config:clear
php artisan view:clear
I hope it will help. :)
Related
App works fine on local server but on heroku it gives following error
InvalidArgumentException:
View [index] not found.
Route is set as:
Route::get('/', function () {
return view('index');
});
index.blade.php also exists in views folder
I have tried following:
Removed cache files from storage/framework/views
php artisan view:clear
php artisan route:cache
php artisan config:cache
php artisan key:generate
Any help please?
you already done php artisan config:cache or php artisan config:clear
Did you name your view correctly as yourview.blade.php?
Did you place the view correctly in resources\views
You can save yourself time clearing caches by writing this one command any time you're having doubts:
php artisan optimize:clear
I'm working on a laravel project with my android phone.
I cleared junk files on the phone using a software and now I get error when trying to serve the laravel project.
First, I ran php artisan serve and got this error:
$ php artisan serve
In PackageManifest.php line 168:
The /storage/emulated/0/web/tbcians/bootstrap
/cache directory must be present and writable
.
Then I created the cache directory and ran php artisan serve again and got another error:
$ php artisan serve
In ProviderRepository.php line 208:
Class 'Illuminate\Cache\CacheServiceProvider'
not found
How do I fix this?
I've tried running
$ composer update
and
$ composer update --no-scripts
but I'm still getting the error
This solved the problem:
Remove "vendor" directory. Use "rm -rf vendor" if you in terminal
Remove composer.local file from root
Run "composer install"
– Jickson Johnson Koottala
First clear your cache.php artisan cache:clear. Then composer update
I am developing a Laravel app, it was all good until I uploaded to the server, then I got this error
file_put_contents(/home/vagrant/sites/controltienda/storage/framework/sessions/Gm7GMQ0Lb5c2PSMWatoZZrVf6XvTXxOnF0PJB9RH): failed to open stream: No such file or directory
I don't know why it is requesting some file from my local drive which obviously it is not present, I already tried the following:
php artisan route:clear
php artisan route:cache
composer dump-autoload
php artisan cache:clear
Without much success. How can I fix this?
so i keep goin on search and i found this older question Laravel wrong view path. I ran php artisan config:cache and that's all folks.
Thanks for replay.
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 ......
I trying to load data to the database via PHP artisan migrate command in laravel 4. But the terminal throws the following error:
{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","me
ssage":"Call to a member function increments() on a non-object","file":"C:\xamp
p\htdocs\lartut\lartut\app\database\migrations\2014_04_17_072025_create-u
sers-table.php","line":15}}
Don't what's causing this error. Can Someone please help me with this.
This fixed my issue.
I used
php artisan migrate:install
before migrating the table. And it worked..........