colbyalbo

colbyalbo

Member Since 1 Year Ago

Experience Points
29,180
Total
Experience

820 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
271
Lessons
Completed
Best Reply Awards
1
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 6
29,180 XP
Aug
01
1 month ago
Activity icon

Replied to Is TDD Worth The Practice?

It does add development time, but I'd rather build the tests as I build applications. It saves time of having to retest everything as new features and changes are implemented. I also find that I'm more organized when i do it that way.

Activity icon

Replied to Getting Error On One-to-many Relation

Assuming One Product has Many Product Singles, make sure you have the relationship defined on both models

In your Product Model try this (also, it's not necessary to pass the attribute/column if the naming convention matches the related model name):

 $this->hasMany('App\ProductSingle');

In your ProductSingle model try this:

$this->belongsTo('App\Product');
Jun
30
2 months ago
Activity icon

Replied to How To Query Though A Pivot Table?

try changing this:

return $this->belongsToMany('App\Models\contact\Contact');

to this:

return $this->belongsToMany('App\Contact');

same thing for the ContactRoles model, unless you've changed the directory structure.

Make sure you related them in the migrations as well.

you can take advantage of Eager loading that Laravel offers as well, to grab the associated relations, like this: $project_managers = ContactRole::with('contacts')->get()

check this out: https://laravel.com/docs/7.x/eloquent-relationships#eager-loading

Jun
22
3 months ago
Activity icon

Awarded Best Reply on Livewire & AlpineJS - Offscreen Menu

Figured it out. There is an "x-cloak" directive that needs to be added the elements (#bg-mask & the ul) to be initially hidden, and add "[x-cloak] { display: none; }" to your global CSS.

docs: https://github.com/alpinejs/alpine/#x-cloak

Activity icon

Replied to Livewire & AlpineJS - Offscreen Menu

Figured it out. There is an "x-cloak" directive that needs to be added the elements (#bg-mask & the ul) to be initially hidden, and add "[x-cloak] { display: none; }" to your global CSS.

docs: https://github.com/alpinejs/alpine/#x-cloak

Activity icon

Started a new Conversation Livewire & AlpineJS - Offscreen Menu

Hi all, just wanted to see if anyone else has run across this. I'm using Laravel 7, Livewire & Alpine, just getting started with this combo. Trying a simple slide in menu. Using a Livewire component with Alpine directives controlling it. The component is absolutely positioned off screen to the left, then when a button is clicked , transitioned into view.

it works fine, however on initial page load, the component displays for a split second, before being positioned correctly. I'm assuming this has to do with the order the resources are loading. (also using Turbolinks & TailwindCSS if that matters)

Has anyone out there dealt with this?

Many thanks!

livewire component:

  <div class="inline-block" x-data="{ open: false }">
    <button class="mr-4" @click="open = ! open">Toggle Menu</button>
    <div id="bgMask" class="absolute z-0 top-0 right-0 w-full h-full bg-black opacity-50"
    x-show="open" x-cloak>
    </div>
    <ul
    class="absolute w-64 lg:w-1/3 z-20 top-0 left-0 h-full p-6 bg-white shadow-2xl"
    x-cloak
    x-show = "open"
    x-transition:enter="transition ease duration-300 -ml-64"
    x-transition:enter-start="transform translate-x-0"
    x-transition:enter-end="transform translate-x-64 ml-0"
    x-transition:leave="transition ease-in duration-300"
    x-transition:leave-start="transform opacity-100"
    x-transition:leave-end="transform opacity-0"
    @click.away="open = false">
        <x-links />
        <button class="mr-4" @click="open = ! open">Toggle Menu</button>
    </ul>
   </div>
   <a class="button hover:bg-navy-200" href="/users/account"><i class="far fa-user-circle"></i> View Account Info</a>
</div>
Jun
12
3 months ago
Activity icon

Commented on File Storage And Custom Avatars

If anyone is wanting to control the naming of the avatar files, here's what i came up with:

$attributes['avatar'] = 
        request('avatar')
        ->storeAs('avatars', 
        request('username') . '-avatar.' . request('avatar')->extension());