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 Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

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

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

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

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

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

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

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

11 Jun
1 week 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
6 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
8 months ago

bobmurdoch started a new conversation Migrating From "permissions" Defined By 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

24 Jul
3 years ago

bobmurdoch left a reply on How Can I Override Elixir's Default Config In Gulpfile.js

How about to always compile for production (without the --production flag), this doesn't seem to do the trick:

var elixir = require('laravel-elixir');
// force minify even when --production is not present
elixir.config.inProduction = true;
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 response, an empty apache error log, and the laravel.log file showing the httpNotFoundException mirroring the debug output

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.

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.

bobmurdoch started a new conversation Upgrade To L5, All Routes 404 Including /

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 their seems to still be a check that calls onConnectionError.