Vilfago

Vilfago

Member Since 1 Year Ago

Neuch√Ętel

Experience Points
95,310
Total
Experience

4,690 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
104
Lessons
Completed
Best Reply Awards
123
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 20
95,310 XP
Jun
10
5 months ago
Activity icon

Replied to Database Layout Ideas

Don't think if more than 2 users will be frequent, just think if you want it possible or not...

users table : id, name, email, password, ... conversations table : id, subject, user_id, updated_at, created_at messages table : id, message, user_id, conversation_id, created_at, updated_at, deleted_at conversation_user table : conversation_id, user_id

So you have a many to many relations between users and conversations through conversation_user, HasMany between conversation and message, and hasMany between user and message.

I added a "user_id" in conversation table if you want to store who begun/own the conversation, for a hasMany between user and conversation (not for access, but for start of them, so be carefull with the naming of this relation). In writing this post, and on the contrary of my post above, I realize this has nothing to do in the pivot table.

And when you need it in your controller

auth()->user()->load('conversations');

Jun
07
5 months ago
Activity icon

Replied to Send Data From Controller To View Depending On The User

Your first line when you fetch all Application data is useless. Are you sure that in application table, you have a dealer_id column ?

For helping more, we need to have a view on which column you have in application table.

Did you take time to read about relations and policies in laravel documentation? It could help you on this matter.

May
26
5 months ago
Activity icon

Replied to Database Layout Ideas

A many to many relationship. Then you can even have conversation with more than 2 people in it. And if you want to track who started it, you can put it in the pivot table.

May
17
6 months ago
Activity icon

Replied to How To Create Two Columns With @foreach?

Could you dump($services); so we can see what's in it.

But I guess each item doesn't contain an array...