richard

Software Developer at Nairobi, Kenya

Member Since 5 Years Ago

Nairobi

Experience Points
93,420
Total
Experience

1,580 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
658
Lessons
Completed
Best Reply Awards
32
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 19
93,420 XP
Apr
30
3 weeks ago
Mar
31
1 month ago
Activity icon

Replied to Laravel Horizon: Call To Undefined Method Illuminate\Queue\RedisQueue::readyNow()

Hi @bobbybouwmann , yes am using redis as my queue driver (QUEUE_CONNECTION=redis)

Also, I have restarted horizon. The problem still persists.

Activity icon

Started a new Conversation Laravel Horizon: Call To Undefined Method Illuminate\Queue\RedisQueue::readyNow()

I am getting an error Call to undefined method Illuminate\Queue\RedisQueue::readyNow() when I run php artisan horizon only on the production environment (I am using Laravel Forge).

PHP 7.3.14
Laravel Framework 7.4.0
Horizon 4.2.0

The horizon UI shows the Supervisor is running but with blank status.

My error log

[2020-03-31 19:54:59] production.ERROR: Call to undefined method Illuminate\Queue\RedisQueue::readyNow() {"userId":1,"exception":"[object] (Error(code: 0): Call to undefined method Illuminate\Queue\RedisQueue::readyNow() at /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/horizon/src/WaitTimeCalculator.php:115)
[stacktrace]
#0 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/horizon/src/WaitTimeCalculator.php(79): Laravel\Horizon\WaitTimeCalculator->timeToClearFor('redis', 'default')
#1 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Support/Collection.php(685): Laravel\Horizon\WaitTimeCalculator->Laravel\Horizon\{closure}('redis:default', 0)
#2 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/horizon/src/WaitTimeCalculator.php(87): Illuminate\Support\Collection->mapWithKeys(Object(Closure))
#3 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/horizon/src/Http/Controllers/DashboardStatsController.php(28): Laravel\Horizon\WaitTimeCalculator->calculate()
#4 [internal function]: Laravel\Horizon\Http\Controllers\DashboardStatsController->index()
#5 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): call_user_func_array(Array, Array)
#6 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\Routing\Controller->callAction('index', Array)
#7 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Routing/Route.php(225): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Laravel\Horizon\Http\Controllers\DashboardStatsController), 'index')
#8 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Routing/Route.php(182): Illuminate\Routing\Route->runController()
#9 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Routing/Router.php(685): Illuminate\Routing\Route->run()
#10 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#11 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/horizon/src/Http/Middleware/Authenticate.php(18): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#12 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Laravel\Horizon\Http\Middleware\Authenticate->handle(Object(Illuminate\Http\Request), Object(Closure))
#13 /home/forge/mydomain.com/releases/20200331164857/app/Http/Middleware/UpdateAppUrl.php(20): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#14 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): App\Http\Middleware\UpdateAppUrl->handle(Object(Illuminate\Http\Request), Object(Closure))
#15 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(41): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#16 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#17 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(76): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#18 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
#19 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/forge/mydomain.com/releases/20200331164857/app/Http/Middleware/IdentifyTenant.php(79): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): App\Http\Middleware\IdentifyTenant->handle(Object(Illuminate\Http\Request), Object(Closure))
#23 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(56): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#24 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#25 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
#27 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(66): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
#29 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#30 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Routing/Router.php(687): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#31 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Routing/Router.php(662): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#32 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Routing/Router.php(628): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#33 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Routing/Router.php(617): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#34 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#35 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#36 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/nova/src/Http/Middleware/ServeNova.php(26): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#37 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Laravel\Nova\Http\Middleware\ServeNova->handle(Object(Illuminate\Http\Request), Object(Closure))
#38 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#39 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#43 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#44 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(63): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#45 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#46 /home/forge/mydomain.com/releases/20200331164857/vendor/fruitcake/laravel-cors/src/HandleCors.php(36): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#47 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Fruitcake\Cors\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#48 /home/forge/mydomain.com/releases/20200331164857/vendor/fideloper/proxy/src/TrustProxies.php(57): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#49 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Fideloper\Proxy\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#50 /home/forge/mydomain.com/releases/20200331164857/vendor/hyn/multi-tenant/src/Middleware/EagerIdentification.php(29): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#51 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Hyn\Tenancy\Middleware\EagerIdentification->handle(Object(Illuminate\Http\Request), Object(Closure))
#52 /home/forge/mydomain.com/releases/20200331164857/vendor/hyn/multi-tenant/src/Middleware/HostnameActions.php(75): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#53 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Hyn\Tenancy\Middleware\HostnameActions->handle(Object(Illuminate\Http\Request), Object(Closure))
#54 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#55 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(140): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#56 /home/forge/mydomain.com/releases/20200331164857/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(109): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#57 /home/forge/mydomain.com/releases/20200331164857/public/index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#58 {main}
"}

Anyone ever experienced this issue before? and how did you solve it? cc @themsaid

Jan
30
3 months ago
Activity icon

Commented on Deferred Loading And Caching Server-Fetched Partials

Runs git checkout -b use-damn-include-fragment in all my projects.

Mind blowing.

Jan
28
3 months ago
Activity icon

Commented on Snapshot Testing In PHPUnit

This is a great lesson, but what is amusing me is that you have to run the tests twice. Is it not possible to write a logic to render the XML snapshots outputs and test the contents at ago?