0ussama

0ussama

Member Since 1 Year Ago

Algiers

Experience Points
7,660
Total
Experience

2,340 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
68
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 2
7,660 XP
Sep
18
1 week ago
Activity icon

Started a new Conversation Nest More Than One Route

Hello, i'm working on a personal project, i have two views (Classes, Times), each class have 4 times which a student attend. My question is: is there any way to avoid the "v-if" on my CRUD table to show "Times" table? the component is already loaded in App.vue component; my Class.vue component is:

//.......
<!-- i wand to avoid-->
  <router-view></router-view>
<!-- this 2nd router view inside -->
    <v-data-table
      v-if="$route.path == '/classes'" 
      :headers="headers"
      :items="classes"
      class="elevation-1"
    >
//.....i hide the CRUD table if the path doesn't match

i'm sorry if it sounds confusing, i hope you get me. thank you in advance

,

Jul
17
2 months ago
Activity icon

Replied to Return Only One Column In One To Many Relationship

thank you!! this is what i'm looking for

Activity icon

Started a new Conversation Return Only One Column In One To Many Relationship

Hi, i have a relationship (one to many) in my laravel app, but i came cross an issue where i don't want to return some sensitive data through HTTP to my view, but i didn't find a method in collections or a default filter where i can only return specific column in a relationship.

 public function index()
    {
	$object = new Seance();
 	$seances = $object->all();

        foreach ($seances as  $seance) {
           
            $seance->student // to have the student object 
            
            
        }

        return $seances;

}

i'll have the hole student JSON in return:

{
"id": 1,
"name": "Prince",
"state": 1,
"created_at": "2020-07-17T13:35:29.000000Z",
"updated_at": "2020-07-17T13:35:29.000000Z",
"student_id": 9,
"student": {
		"id": 9,
		"identifier": "HAOGNISBQE9",// <=== I need only this for security reasons
		"firstName": "Raheem",
		"lastName": "Halvorson",
		"phoneNumber": "484.763.3875",
		"hiringDate": "1959-01-08"

}
}