bobmurdoch

bobmurdoch

Member Since 5 Years Ago

Experience Points 5,815
Experience Level 2

4,185 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 99
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • start-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-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-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist 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.

11 Jun
2 months ago

bobmurdoch left a reply on Error While Testing

Updating my globally installed phpunit from 7.5.6 => 7.5.12 fixed this issue for me.

bobmurdoch left a reply on Error While Testing

I don't have a solution, but it is definitely tied to the RefreshDatabase trait, when that or the Migrate trait is present it throws this error, as if those artisan commands are asking for confirmation to run but can't get them from being run via phpunit.

19 Nov
9 months ago

bobmurdoch started a new conversation Sqlsrv DB Driver And Timestamp Fields

When I retrieve records from a SQL Server, there are fields of the type Timestamp that when dumped are in a string format 'b"\x00\x00\x00\x00\x00\x00 ... '

Anyone know how to transform this into something useable? Thanks

18 Oct
10 months ago

bobmurdoch started a new conversation Migrating From Authentication In Middleware To Model Policies

Up until now I've largely ignored gates/policies due to working in older versions of Laravel. My authorization typically was defined by middleware that checked for user permissions.

I see the value in tying policies to the model directly, but it leaves me with one question where I'm not sure the best direction to take.

A lot of my application consists of jobs pushed on the queue which previously need not be concerned with middleware since they didn't touch controllers.

If I move to using model policies, right now my application would be running these queue jobs without a user and would all fail.

So far, the best plan I can see is having a system user account that has all of the proper permissions and simply adding a Auth::login($systemUser); to the start of those jobs.

Anyone have any thoughts or different approaches on this?

Thanks

06 Dec
3 years ago

bobmurdoch left a reply on Laravel 5.1 Queue Job Delay Doesn't Work

I'm finding the title of this thread to be true. When configuring the queue, Amazon has an option for the queue "Delivery Delay" between 0 and 15 minutes that must be configured. I'm not sure if the SQS API allows this to be overriden with individual message calls, but the queue call does send the delay information (https://github.com/laravel/framework/blob/5.1/src/Illuminate/Queue/SqsQueue.php). I found a pattern where no delays occurred regardless of settings in my testing with Laravel 5.0:

SQS Queue setup with 0 delay:

Queue::now()  // delivers immediately
Queue::later(1 minute delay,...) // delivers immediately

SQS Queue set with 1 minute delay:

Queue::now() // delivers immediately
Queue::later(1 minute delay,...)// delivers immediately
17 Mar
4 years ago

bobmurdoch left a reply on PHPStorm And The Ioc Container

The latest versions of barryvdh/laravel-ide-helper now support this .. check out the "PhpStorm Meta for Container instances" section for more info: https://github.com/barryvdh/laravel-ide-helper

10 Mar
4 years ago

bobmurdoch left a reply on HttpNotFoundException Although Route Exists

Resetting the project did not end up fixing it for me. In my case the problem ending being up all of my routes being contained by Route::group(array('https'), function() { } Which evidently no longer works in L5. I've removed that wrapper and now instead use URL::forceSchema('https'); and everything is back to normal.

09 Mar
4 years ago

bobmurdoch left a reply on HttpNotFoundException Although Route Exists

I have an apache access log showing the request with a 404 status, an empty apache error log, and the laravel.log file showing the httpNotFoundException mirroring the debug output.

Update: Thanks for your help bashy and others, sorry to have wasted your time. I wiped out the project and started with a fresh install and the issue went way.

bobmurdoch left a reply on HttpNotFoundException Although Route Exists

Were that the case I don't see how I'd ever get an Laravel exception. I'm tracking it further down in the application and it looks like apache isn't passing the URL path correctly, ( it's not present in the request ) so I'll see if I can't figure out why that's occurring. This is using PHP-FPM in conjunction w/ apache which I noticed one other vague comment on stack overflow about a problem. I'm going to try switching to modphp see if that fixes it so I can isolate the problem at least.

bobmurdoch left a reply on HttpNotFoundException Although Route Exists

To update my scenario a bit, I was wrong my local environment didn't switch away for Nginx as I had thought, so when I switched to apache on the local environment the issue persists there as well.

Running php artisan route:list shows all of my routes. But still getting the excep. when hitting any route.

07 Mar
4 years ago

bobmurdoch left a reply on HttpNotFoundException Although Route Exists

Yea, I'm afraid that didn't fix the issue for me either.

bobmurdoch left a reply on HttpNotFoundException Although Route Exists

I too am having a very similar problem, for me ubuntu running in vagrant works. But when I push to Heroku, I encounter the same error on Heroku. Local and Heroku both running Apache.

For me everything worked fine in both of these environments with L4, it's only upgrading to L5 and following all of upgrade steps that I'm seeing this issue.

bobmurdoch started a new conversation Upgrade To L5, All Routes Throwing NotFoundHttpException Including /index.php

Some brief background, the code was working locally and on heroku fine with L4. Both running apache.

I completed all of the upgrade steps, and strangely everything works fine locally with my vagrant server, but when I push to heroku all paths produce a NotFoundHttpException .. I don't think it's an .htaccess issue because even when I visit http://domain.com/index.php it throws the exception. Has anyone seen this? Thanks

17 Feb
4 years ago

bobmurdoch left a reply on PHPStorm And The Ioc Container

Fair enough, I wasn't sure if there was something analogous to the ide helper that would map out service providers, but had a hunch not. Thanks

bobmurdoch started a new conversation PHPStorm And The Ioc Container

Is there a way to setup PHPStorm to be aware of custom service providers so autocomplete works on $someVar after
$someVar = App::make('myCustomClass');

02 Jan
4 years ago

bobmurdoch started a new conversation Cache Bypass If Caching Server Is Unavailable?

In the event my caching backend is unavailable ( i.e. redis crashes ), is there an elegant way to have Laravel just ignore the the caching mechanism rather than throwing Exceptions? I wrapped my cache functions with exception handlers, but there seems to still be a check that calls onConnectionError.