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.
Related
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?
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 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.
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
I'm using the latest version of Laravel 5.5 with AWS. I have created a load balancer and two Amazon EC2 instances. The page works as expected only the registration or login does not work. The error message "The page has expired due to inactivity." is displayed. The SESSION_DRIVER is set to database. On every instance I've executed the following commands:
php /var/www/html/artisan cache:clear
php /var/www/html/artisan config:clear
php /var/www/html/artisan route:clear
php /var/www/html/artisan view:clear
Any clue what might be wrong?
What else did I try? Set the SESSION_DOMAIN to null, localhost. I also switched the SESSION_DRIVER back from database to file.
I had the same issue and fixed by doing this
Method 01
go to login page and registration page. And after the <form> tag add this
{{ csrf_field() }}
Method 02
If no luck use this
composer dumpautoload;
FYI: you can clear cache by php artisan route:clear ;php artisan cache:clear by running this along with composer dumpautoload is enaugh.
I have found the solution. Needed to set the SESSION_DOMAIN= in the .env. localhost is not sufficient in this situation, but the full domain name was required.