Laravel ShouldQueue results in history issues - laravel

My EncodeVideo.php
class EncodeVideo implements ShouldQueue
The handle() function
public function handle()
{
Log::debug('handle');
gives random history versions of my Log::debug function
Sometimes it output log::debug content I changed 30 minutes ago
I tried to clear artisan cache and artisan clear queue with no success

Unfortunately, your question was not clear to me
If I understood correctly, you could solve your problem by running the following commands
(I noticed that you cleared the cache, but try again, I hope it helps)
php artisan cache:clear
php artisan queue:restart
php artisan event:clear
If it doesn't work, try this
php artisan cache:clear
php artisan view:clear
php artisan route:clear
php artisan clear-compiled
php artisan config:clear
php artisan queue:restart
php artisan event:clear
php artisan optimize:clear

Related

Symfony\Component\Routing\Exception\RouteNotFoundException Route [games.mines] not defined. C:\private\gamble\resources\views\games\mines.blade.php)

enter image description here
so when i open my laravel i get this error: Symfony\Component\Routing\Exception\RouteNotFoundException
Route [games.mines] not defined. (View: C:\private\gamble\resources\views\games\mines.blade.php)
but when i remove the line: mines. my page will load in.
and im completely lost in how to fix this.
basically i just want to add a header with a button to my mines. the button to dashboard works fine
The standard procedure to clear the Laravel cache is:
php artisan cache:clear
php artisan view:clear
php artisan route:cache
php artisan config:cache
php artisan optimize
This is according to the following article: https://beyondco.de/blog/laravel-caches-and-all-ways-to-clear-them
You can try typing these instructions from the command terminal:
php artisan cache:clear
php artisan view:clear
php artisan route:cache
php artisan config:cache
php artisan optimize
You may have a problem with the Laravel cache, these commands will clear the Laravel cache.

Laravel Http Client events not firing from terminal

I created a subscriber that listen to Http Client events (ConnectionFailed, ResponseReceived) to log all http requests. It works fine when I make a request in controller, but when I make a request in tinker or in a command, nothing will log.
Do you have any idea what's the problem?
But it works in a fresh Laravel.
I tried chmod -R 777 storage/logs
Adding
public function shouldDiscoverEvents()
{
return true;
}
to EventServiceProvider.
Adding APP_LOG_LEVEL=debug to .env
Also
sudo rm -rf storage/framework/cache/data/*
sudo rm -rf bootstrap/cache/*
composer dump-autoload
php artisan clear
php artisan debugbar:clear
php artisan cache:clear
php artisan auth:clear-resets
php artisan config:clear
php artisan route:clear
php artisan view:clear
php artisan cache:forget spatie.permission.cache
In my case the imanghafoori/laravel-microscope package caused this issue.
I created an issue: https://github.com/imanghafoori1/laravel-microscope/issues/161

Laravel Performance issue in Production server

Hi i just put my app in production and the laravel application is very slow, even slow then in my local server.
May i know any trips and tricks to increase peformance.
Run this in command line to boost the performance
composer dump-autoload
php artisan clear-compiled
php artisan config:cache
php artisan route:cache
php artisan optimize --force

Unexpected behavior in Laravel 5.3 installation

My Laravel project randomly shows connection refused exception, but it was working before, so I type
php artisan config:cache
and the error disappear, but after that, it throws View not found exception I ran
php artisan config:cache
again without success. After that, I type
php artisan route:cache
php artisan route:clear
php artisan clear-compiled
composer dump-autoload
but the exception View not found still there, so I don`t know what else to do.
I use vagrant with Homestead 7.
NOTE: Yesterday I migrate my installation to a fresh one because the same problem, but today it appears again.
well, after many attempts i ran
php artisan cache:clear
and the problem is now gone.

Laravel working in master branch but not updating HTML in localhost

I'm working in my master branch on my computer locally. I've updated some HTML and I'm loading the page up in localhost. However, the HTML is not being updated but my CSS is, what do I do? I haven't had this problem before!
Try
php atrisan config:cache
on your terminal. May be the page serving from cache that's why not reflecting the changes.
Try to execute this commands to remove the caches:
php artisan clear-compiled
php artisan cache:clear
php artisan config:clear
php artisan route:clear
php artisan view:clear
composer dump-autoload
php artisan optimize

Resources