samar92

Member Since 9 Months Ago

Cairo

Experience Points
6,560
Total
Experience

3,440 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
61
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.

  • Community Pillar

    Earned once your experience points ranks in the top 10 of all Laracasts users.

Level 2
6,560 XP
Mar
04
1 month ago
Activity icon

Replied to How To Access The Relationships Via Models In Laravel 8 Inertia

I updated the question , i need to print the area of current user ,

this is the object i got :

{ "id": 2, "fname": "", "lname": "", "email": "[email protected]", "email_verified_at": "2021-02-22T22:44:50.000000Z", "current_team_id": 2, "area_id": 2, "profile_photo_path": null, "created_at": "2021-02-22T22:36:14.000000Z", "updated_at": "2021-03-04T21:02:38.000000Z", "profile_photo_url": "https://ui-avatars.com/api/?name=&color=7F9CF5&background=EBF4FF", "two_factor_enabled": false }

Activity icon

Started a new Conversation How To Access The Relationships Via Models In Laravel 8 Inertia

i have a relation one to many between users table and areas table , when i return profile data i get area_id from users , is there a way to get area name in profile view ? i tried to call model function in show.vue but it is not working.

User.php

 public function area()
    {
        return $this->belongsTo(Area::class);
    }

Area.php

 public function users()
    {
        return $this->hasMany(User::class);
    }

show.vue

<template>
  <app-layout>
    <template #cover>
        <img src="/en/images/resources/download.jpg" alt="" style="height:440px;">
			<div class="add-pic-box">
				<div class="container">
					<div class="row no-gutters">
						<div class="col-lg-12 col-sm-12">					
							<input type="file" id="file">
							<label for="file">Change Image</label>				
						</div>
					</div>
				</div>
			</div>
    </template>
    <div>
      <div class="main-section">
        <div class="container">
          <div class="main-section-data">
            <div class="row">
              <left-side-profile :user="$page.props.user"></left-side-profile>
              <profile-content :user="$page.props.user"></profile-content>
              <right-side></right-side>
            </div>
          </div>
          <!-- main-section-data end-->
        </div>
      </div>
    </div>
  </app-layout>
</template>
Feb
11
2 months ago
Activity icon

Started a new Conversation Laravel 8 Inertia

i am trying to update input field using vue , but after updateing the value didnot change in front .

<div class="user-profile-ov">
          <h3>
            <a href="#" title="" class="overview-open">Overview</a>           
            <a href="#" title="" class="overview-open"
              ><i class="fa fa-pencil"></i
            ></a>
          </h3>
          <p>
            {{user.overView}}
          </p>
        </div>

this is my vue script

data() {
    return {
      success: '',
      showSuccess: false,
      form: this.$inertia.form({
        overview: this.user.overview,
        error: '',
      }),
    };
  },
  methods:{
    addOverView(){
      // this.$inertia.post('/addOverView', this.form).
      // then(response=> { $("#overview-box").removeClass("open");
      //   $(".wrapper").removeClass("overlay")}
      // );

       axios.post(route('Overview.add'), { overview: this.form.overview,})
                .then(() => {
                    this.form.processing = false;
                    this.closedialog();            
                }).catch(error => {
                    this.form.processing = false;
                    this.form.error = error.response.data.errors.overview[0];
                    this.$refs.overview.focus()
                });     
    },
    closedialog(){
          this.form.overview = overview;
          this.form.error = '';
          $("#overview-box").removeClass("open");
          $(".wrapper").removeClass("overlay");
          this.success =  'Your overview was added successfully !' ;
          this.showSuccess = true   ;
    }
  }
Jan
21
2 months ago
Activity icon

Started a new Conversation Reset Password In Spa Laravel7 Vue With Sanctum

I created spa laravel vue project using sanctum but i can not complete forgot password i tried using reset password of laravel and sent reset link successfully but the sent link redirected to laravel backend and i want to send it to vue frontend any ideas ?