MeisamTj

Member Since 1 Year Ago

Experience Points
15,550
Total
Experience

4,450 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
148
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 4
15,550 XP
Mar
13
4 weeks ago
Activity icon

Replied to Livewire Model Binding Lifecycle Hooks Issue!

I think I found the solution. It is nested so it must be updatedFooBar...

public function updatedEditingSlug() {
	//
}
Activity icon

Replied to PWA

I just found "How to add to screen" tutorials. The icons are different in browser too. One is Add to Home Screen the other is Install (bordered Downward Arrow). Would you mind if you tell me where can I find Docs about it. Thank you.

Mar
10
1 month ago
Activity icon

Started a new Conversation PWA

There are two types of PWA. One is regular Add To Home Screen one, which is not sounds very pro. One is what unsplash uses which let the PWA install into Apps not the home screen.

Does it have particular name? I could not find anywhere how to make it. I think I have done this before but I am not sure how. The Add To Home screen one is a pain in back!

Mar
06
1 month ago
Mar
01
1 month ago
Activity icon

Started a new Conversation Livewire Model Binding Lifecycle Hooks Issue!

I have a model (Page::class) and I bind it to public Page $editing; I want to make slug from title of page. I could use

  public function updatedTitle($value)
  {
    $this->slug = Str::slug($value);
  }

but with model binding I have wire:model in this editing.title and editing.slug format. How can I make updated() lifecycle out of it to make slug??

Thanks in forward.

Feb
22
1 month ago
Activity icon

Replied to MorphMany() In Extended Model Not Working

I have done this in App\Providers\AppServiceProvider as Documentation said:

use Illuminate\Database\Eloquent\Relations\Relation;
    
    Relation::morphMap([
      'App\Models\Product' => 'App\Models\AdminProduct',
    ]);

But I hope there is a better way to solve this!

Activity icon

Started a new Conversation MorphMany() In Extended Model Not Working

Hi there,

I have a model of Products. I made new model for administration purpose and named it AdminProduct. When I try to get images of a product by morph relationship it returns empty array. It tries to select from 'images' table where type is equal to App\Models\AdminProduct instead of App\Models\Product.

SQL: select * from "images" where "images"."imageable_id" in (?) and "images"."imageable_type" = App\Models\AdminProduct

It seems a common issue but I couldn't find the solution yet. Is any body know the solution?

public function images()
  {
    return $this->morphMany(Image::class, 'imageable');
  }