YeZawHein

YeZawHein

Member Since 1 Year Ago

Experience Points
57,290
Total
Experience

2,710 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
503
Lessons
Completed
Best Reply Awards
9
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 12
57,290 XP
Jan
22
1 month ago
Activity icon

Replied to Vue Template

A <slot> tag without name has the name “default”. To provide content to named slots, we can use the v-slot directive on a template . Documentation

<template v-slot:something>
    <p>footer</p>
  </template>

<footer>
    <slot name="something"></slot>
  </footer>
Dec
24
1 month ago
Activity icon

Replied to Json_encode

you can create your own custom helper function for utf8ize

Activity icon

Replied to Json_encode

Php documentation said "All string data must be UTF-8 encoded." You can use utf8_encode .

function utf8ize($data) {
    if (is_array($data)) {
        foreach ($data as $k => $v) {
            $data[$k] = utf8ize($v);
        }
    } else if (is_string ($data)) {
        return utf8_encode($data);
    }
    return $data;
}

dd(json_encode(utf8ize($data));)
Oct
08
4 months ago
Activity icon

Replied to Cant Find Carbon In View

 {{ \Carbon\Carbon::parse($post->publish_date)->format('M.d.Y') }}
Oct
07
4 months ago
Activity icon

Replied to Undefined Variable: MasterStockist

@forelse($masterStockist as $ms)
<tr> 
//your code
</tr>
@empty
<td>There is no master stock list </td>
@endforelse
Sep
30
4 months ago
Activity icon

Replied to Help With Understanding Laravel Passport

When the user logged in passport can generate access token.One user One token.User can access authenticated routes until access token expired.

Sep
27
4 months ago
Activity icon

Replied to Refactor If Statement

Yikes! You haven't name in roles table?

{{ $user->role->name }}
Sep
23
5 months ago
Activity icon

Replied to Passport Grant Token - Expires_in

@saantty44 Try this one

public function boot()
{
    $this->registerPolicies();

    Passport::routes();
    Passport::personalAccessTokensExpireIn(now()->addMinutes(10));
      
}
Sep
11
5 months ago
Activity icon

Replied to HasManyThrough Relation Implementation Help Need

I think you won't need 3 tables.

Users

id
name
---
---
role_id (may be supplier and customer)
parent_id ( may be this user(customer or supplier)  has parent customer id and default 0 )

Roles (O-M relation with users)

id
name (can be supplier and customer)
Sep
09
5 months ago
Activity icon

Replied to More Cleaner Way

Why don't use conditional statement in blade?

Sep
02
5 months ago
Activity icon

Replied to Image Not Display In Laravel 5.7

Hey you can use storage directory command. php artisan storage:link documentation.That's create an absolute link under public from storage/app/public.

Activity icon

Replied to Image Not Display In Laravel 5.7

asset() generates a url for javascript,css and images in under public directory directly.For example

{{asset('images/something.jpg')}}
Aug
31
5 months ago
Activity icon

Replied to How To Update All Option ?

@van1310 what relationship do you have between these tables?

Aug
30
5 months ago
Aug
16
6 months ago
Activity icon

Replied to Cannot Access Attributes Of A Model In View.

@azoraqua Ok So try to change column name author to author_id.You can't have them be the same name because the relationship will never be returned if a column is found with that name.

Activity icon

Replied to Cannot Access Attributes Of A Model In View.

I think this post already doesn't have author.You can try this

<li class="small"><a href="#" class="text-dark font-weight-bolder">
    {{ $post->author->name ? $post->author->name:'This post doesn't have author' }}
</a></li>