Brainmaniac

Brainmaniac

Member Since 1 Year Ago

Experience Points
4,680
Total
Experience

320 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
40
Lessons
Completed
Best Reply Awards
0
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 1
4,680 XP
Sep
20
1 month ago
Activity icon

Awarded Best Reply on Run All My Dusk Test Files

🤦‍♀️ https://laracasts.com/discuss/channels/testing/dusk-not-working-with-multiple-tests-filesfolders - to my defence - this should be clearer in the docs

Activity icon

Started a new Conversation Run All My Dusk Test Files

Hi!

I have two different files containing one dusk test each. How can I run both/all my files? They are both placed in the Browser folder. When I run php artisan duskonly one file gets executed.. I can run each individually by specifying a path. But it would be nice to have them both run..

Jul
29
2 months ago
Activity icon

Awarded Best Reply on What To Backfill With In Type-column On Polymorphic Table?

Correct was: App\User

Activity icon

Started a new Conversation What To Backfill With In Type-column On Polymorphic Table?

Hi,

I am changing my file-model to go from one to many to be a one to many polymorphic relation. Before only my User-model could have hava file but now my model Guest will also be able to have a file.

So before I had a column on in the file table named user_id I have renamed that one following the pattern here: https://laravel.com/docs/7.x/eloquent-relationships#many-to-many-polymorphic-relations

So it is now named fileable_id.

In addition to the renaming I have added a column named fileable_type I know want to back fill this column so it point on the User-model. What should I write in that column?

I have tried App\User and User without success.

Jul
03
3 months ago
Activity icon

Started a new Conversation Missing Methods In Handler.php

Hi there 👋

I am about to upgrade from 6.x to 7.x of my laravel framwork. I See in the documentation for upgrade that I should update the exception type to Throwable on these methods:

use Throwable;

public function report(Throwable $exception);
public function shouldReport(Throwable $exception);
public function render($request, Throwable $exception);
public function renderForConsole($output, Throwable $exception);

I'd be happy to that only problem is I don't seem to have these two methods in my Handler.php:

public function shouldReport(Throwable $exception);
public function renderForConsole($output, Throwable $exception);

Is there some installation that I missed in previous updates? And how can I get those methods?

Have nice day!

Apr
20
6 months ago
Activity icon

Replied to Access Target Model With HasManyThrough Between Two Steps Of Has-many Relations

Thank you I'll see what I come up with. If good I'll make PR to laravel... Any suggestions on how to start?

@jeffreyway @tay-tay

Apr
18
6 months ago
Activity icon

Started a new Conversation Access Target Model With HasManyThrough Between Two Steps Of Has-many Relations

Please see the attached structure:

enter image description here

I want to access all packs that has any fruits that has a specific tag.

Seudo Code here: Tag: 'Good fruits' -> Fruits: ['banan', 'cactus'] -> Packs: ['Exotic', 'DessertFruits']

So I want to have something like:

$myTag = App\Tag::where('name', 'goodFruits')->first();

$mytag->packs

=>Illuminate\Database\Eloquent\Collection {#3907
     all: [
      App\Pack {
          .. 'Exotic' ..
       },
       {
       ... 'DessertFruits' ...
       },
     ],
   }

Both Between Pack and Fruit and between Fruit and Tag there are pivot-tables. I have the correct set-up with belongsToMany in each model. In the tag model I also have:

    /**
    * Gets all the packs for a tag
    */
    public function packs()
    {
        return $this->hasManyThrough('App\Pack', 'App\Fruit');
    }

...all according to:

https://laravel.com/docs/6.x/eloquent-relationships#has-many-through

I am running Laravel 6.

So what is the problem?

When I execute $myTag->packs I get:

Illuminate/Database/QueryException with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'fruit.tag_id' in 'field list' (SQL: select `packs`.*, `fruits`.`tag_id` as `laravel_through_key` from `packs` inner join `fruits` on `fruits`.`id` = `packs`.`fruit_id` where `fruits`.`tag_id` = 1)' 

What am I doing wrong? How can I achieve what I want?