mallaury

mallaury

Member Since 7 Months Ago

Experience Points
360
Total
Experience

4,640 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
0
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
360 XP
Aug
08
1 month ago
Activity icon

Replied to Get WithCount() Of Nested Relationship

Thanks. It works !

Thanks for your help. Have a good day.

Activity icon

Replied to Get WithCount() Of Nested Relationship

Thanks for your answer. But it will count how many department_lesson collections are linked to the user... Not how many documents :/ The problem is: "withCount" refers to the lesson, not the department_lesson. (when I use withCount in lesson context, it works perfectly)

Activity icon

Started a new Conversation Get WithCount() Of Nested Relationship

Hello,

Here is my problem: In my database I have departments that have lessons. Lesson belongs to many departments. So there is a pivot table named department_lesson.

Users are allow to store documents (and some other stuff) in a lesson so that documents are visible in all lessons that belong to the department.

From a list of department_lesson, I would like to display how many documents are stored in.

Here is my code:

$departmentLessons = auth()->user()->myDepartmentLessons()
                ->with('lesson.documents')
                ->with('lesson.someOtherStuffs')
                ->get();

In this case I get all documents in the lesson. But I just want to count them... I tried that, but it does not work of course...

$departmentLessons = auth()->user()->myDepartmentLessons()
                ->with('lesson')
			->withCount('documents')
                ->get();
// Other test
$departmentLessons = auth()->user()->myDepartmentLessons()
		->withCount('lesson.documents')
                ->get();

Thanks in advance !!!

May
09
4 months ago
Activity icon

Replied to Multiple Select Does Not Work On Edge

Yes that's strange nobody get this error... Maybe it happens because I'm using a searchable select with "MDBootstrap" ?

May
08
4 months ago
Activity icon

Replied to Multiple Select Does Not Work On Edge

Yes sorry I already try to dump the $request.

In Edge the $datas variable just don't appear. I just have "_method" and "_token". Everything is good in firefox and Chrome

Activity icon

Started a new Conversation Multiple Select Does Not Work On Edge

Hello,

I am trying to send some POST data in a multiple select. Like that:

<select name="datas[]" multiple>
	...
</select>

In my controller, I do that:

foreach($request->datas as $data){
	...
}

Everything work perfectly. But It does not work with Edge. I get a 500 error. $request->datas doesn't seem to be an array. And if I cast it I don't get the 500 error but the foreach is ignored...

Is Edge incompatible with multiple select ?

Thanks !