mdk999

mdk999

Member Since 1 Year Ago

Experience Points 350
Experience
Level
Lessons Completed 0
Lessons
Completed
Best Reply Awards 0
Best Answer
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.

28 Sep
3 months ago

mdk999 left a reply on Help Linking Models

Can anyone offer some assistance with this question?

26 Sep
3 months ago

mdk999 started a new conversation Help Linking Models

I have 4 models permtypes perms roles rolesperm

permtypes.id = perms.type_id role.id = roleperm.role_id permtypes.id = rolesperm.perm_id

permtypes would be (door,safe,garage, etc) permtype 'door' has many perms ('open-door',close-door','lock-door','unlock-door') pemtype 'safe' has many perms ('open-safe',close-safe','lock-safe','unlock-safe') roles would be ('father','mother','child') rolesperm would be assigning (father->open-door, Mother->open-door)

I need to be able to get.. permtypes and all associated perms roles and all associated rolesperm all permtypes , for a role and the associated roleperm

Thanks

mdk999 left a reply on PHP Error: Call To Undefined Method StdClass::save()

Yes it is. Turned out to be an issue with vagrant :|

25 Sep
3 months ago

mdk999 started a new conversation PHP Error: Call To Undefined Method StdClass::save()

I have a model that throws the above error. I created a seeder for this model that doesn't seem to run (other seeders in the folder run). The model is below..

24 Sep
3 months ago

mdk999 started a new conversation Access Computed Value In Vue

I have an array of users (User::all()) that I have looped in my blade (@foreach). I have a field which I've computed ($user->roles()->pluck('name')). I now need to convert part of my blade into a vue component. How best to get that computed field into the array so that I can access in Vue (user.assignedroles). I could say loop through my array and create a field and add that value but I think there should be a better solution. I did look at accessors and mutators but those wouldn't help me to access from Vue. Thanks

21 Sep
3 months ago

mdk999 left a reply on Assign Multiple Roles By Id

Wanted to verify the input with the existing roles. Your latter suggestion worked - thanks

mdk999 started a new conversation Assign Multiple Role By Id

How do I assign multiple roles by id? I have an array of role id's that I need to assign to a user.

This doesn't seem to work ..

$user->roles()->attach(Role::whereIn('id', $data['roles']));

13 Jan
1 year ago

mdk999 started a new conversation Add Additional User Data

I'd like to add additional user data (Gender, height, weight, age, etc). I know I can extend the user model and add additional fields but not sure this is the best place for this data. I will probably need to get this information when accessing $user (ie $user->height). Suggestions on doing this? Thanks.

mdk999 left a reply on Best Way To Modify Auth In Laravel 5.5

Thanks for the quick reply. It was helpful and appreciated.

mdk999 started a new conversation Best Way To Modify Auth In Laravel 5.5

I ran make:auth and now have an authentication/login system. I'm looking to modify this but wanted some input on the best way to accomplish this. Do I modify the login controller? do I make my own, include traits the override the functions (ie getLogin). Hoping to add things like redirect based on user role, email confirmation, login with phone number, etc. Thanks much.