forrestedw

forrestedw

Director at Ed Forrest Limited

Member Since 1 Year Ago

Glastonbury, UK

Experience Points
4,730
Total
Experience

270 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
41
Lessons
Completed
Best Reply Awards
1
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.

Level 1
4,730 XP
16 Sep
5 days ago

forrestedw left a reply on Laravel Dusk Not Picking Up APP_URL In .env.dusk.local File

Did you figure out how to fix this? I'm getting the same error now.

If id dd(env('APP_URL')) I get the correct url for testing, but if I comment out '--headless', in DuskTestCase.php I can see that it is getting the APP_URL from my standard .env

28 Aug
3 weeks ago

forrestedw commented on Explain How A Facade Works Under The Hood

This kind of deep-dive is really useful. I learned a ton.

30 Jul
1 month ago

forrestedw left a reply on Add New Column To Migration - But Change Order

@cronix it is useful to order columns so that when to check them in something like Sequel Pro they are in a convenient place.

Also, I like to keep things logical at all levels of my code. So for example I always put my relational cols (eg model_id) together in alphabetical order.

forrestedw left a reply on Add New Column To Migration - But Change Order

Like this:

public function up()
    {
        Schema::table('f_quotes', function (Blueprint $table) {
            $table->string('terms')->after('column_name');
        });
    }

forrestedw left a reply on Looping Data Barcode

If you want a 4 X 5 grid, put something like this around your barcode element:

@for ($i = 0; $i < 5; $i++)
    <div>
        @for ($j = 0; $j < 4; $j++)
            // Barcode div
        @endfor 
    </div>
@endfor
16 Jul
2 months ago

forrestedw left a reply on Sparkpost Error : Unable To Find The Socket Transport "starttsl"

using "tls" instead of "starttls" for mail_encryption in .env did it for me. Thanks for solving this.

08 Mar
6 months ago

forrestedw left a reply on Multiple Models To Same Table

@ANDREWCLARK - Hey, a bit late to this conversation but I like the look of @martinbean's approach too. However, I've been trying it but can't get Factories to work. Taking something like your example above I want to be able to do:

factory(App\Truck::class)->create();

But that gives me this error in Tinker:

PHP Notice:  Undefined index: App/Truck in .../vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php on line 241

How can I create Factories for different types of Vehicle?

Edit: I could do factory(App\Vehicle::class)->state('truck')->create() and define a different state in the VehicleFactory for each type of Vehicle, but I'd rather a more intuitive approach (and shorter Factory files) if there is one.

06 Mar
1 year ago

forrestedw left a reply on BadMethodCallException With Message 'Call To Undefined Method Illuminate\Database\Query\Builder::incomplete()'

Make sure to restart the Tinker when you make changes in your code.

I had the same problem and this solved it. Thank you.