Laravel - application showing old views after making changes - php

I am working on a Laravel template. I have made changes in the public folder while using xampp.
however, when I upload the project to live hosting, the application is showing the old unchanged view but it loads properly when I load it with xampp
I have tried clearing commands but no luck:
php artisan cache:clear
php artisan route:cache
php artisan view:clear
php artisan config:cache
Please how can I get past this issue?

Related

View not found error after deploying Laravel app on Heroku

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

Laravel 8 UI issue

I have installed Laravel 8 as a new project. When I run the project I get the "In order to use the Auth::routes() method, please install the laravel/ui package." But Laravel installation doc says that laravel ui is depreciated and that we should use Jetstream. So I installed Jetstream with the Livewire stack. Back to test the project and I get the same error msg.
I have run a composer dump-autoload.
What do I have to do to get a Laravel 8 project to run?
You will need to clear and recreate cache. Run the following php artisan commands:
php artisan cache:clear
php artisan config:cache
php artisan route:cache
I had this problem as well on many 'upgrades' from earlier versions of Laravel. I don't want to change the entire auth mechanism, as it works, so I will keep the code I have.
#Elisha Senoo's answer is correct, and solved it most of the time. However, if you find yourself unable to clear the cache (because it has the same error message on the artisan command), the solution is to manually clear the .php files within the bootstrap/cache folder and then php artisan config:cache.

Blade view doesn't reflects the changes

I am working on a laravel project and created some view but when I try to change the views it doesn't reflects any changes i made there.
i am using Ubuntu as OS and my PHP version is 7.4
https://i.stack.imgur.com/bWkyB.jpg
I also tried
php artisan view:clear
php artisan cache:clear
php artisan config:clear
then i refresh the page and get the same old complied data on my view.

View [index] not found in laravel

my website run correctly at localhost but when i upload it on CPanel it makes a mistake and say me view index not found
InvalidArgumentException View [index] not found.
this is my Route Code:
Route::get('/', function () {
return view('index');
});
Also i executed these commands:
php artisan config:cache
php artisan config: clear
php artisan view:clear
composer update
php artisan route:clear
but it have no response!!!!!
What's your resources/views directory's permission? It should accessible by your web server.
You should try : php artisan cache:clear
If these commands work:
php artisan config:cache or php artisan
config:clear?
named your view correctly with yourview.blade.php?
placed the view correctly in the resources\views?
Maybe the problem is that your server is not setting up properly because the domain doesnt connected properly to your VPS. Contact the hosting provider.
i solved it, i upload new project and it solved but i don't know what is the issue of last project. It's so weird

Laravel requesting local file in server (file_put_contents)

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.

Categories