anditsung

anditsung

Member Since 2 Weeks Ago

Experience Points
670
Total
Experience

4,330 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
4
Lessons
Completed
Best Reply Awards
0
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 1
670 XP
Oct
18
2 days ago
Oct
10
1 week ago
Activity icon

Replied to Model With BelongsTo And BelongsToMany

before using poly i thought about using this kind of approach.

right now i test another approach using poly new material be create on the formula model then raw material can be list on the formula.

compound = [ id, name, compound_type_id, plant_id, product_type_id ] premix = [ id, name, material_id ] dispersion = [ id, name, material_id ] extra = [ id, name, plant_id ]

formula model

public function formulaable()
{
    return $this->morphTo();
}

compound, premix, dispersion and extra model

public function formula()
{
    return $this->morphOne(Formula::class, 'formulaable')
}

hopefully this is the right approach for this situasion

Oct
09
1 week ago
Activity icon

Started a new Conversation Nova Hasmany Items

On nova, is it possible to add hasMany on create form? Right now hasMany fields only seen on details page

Activity icon

Replied to Laravel Nova Belongsto Filter

i got the answer for this.. not well documented on the documentation

Resource

public function fields(Request $request)
    {
        return [

            BelongsTo::make('Formula')
                ->searchable()
                ->rules('required'),

            BelongsTo::make('Tank')
                ->rules('required'),
        ];
    }

Model

public function formula() : BelongsTo
    {
        return $this->belongsTo(Formula::class);
    }

    public function tank()
    {
        return $this->belongsTo(Tank::class);
    }

to filter the relation must add this code on the Resource

public static function relatableFormulas(NovaRequest $request, $query)
    {
        return $query->where('active', true);
    }

    public static function relatableTanks(NovaRequest $request, $query)
    {
        return $query->where('active', true);
    }

if the name for the field is Something then the function name must be relatableSomethings

Activity icon

Replied to Hello..

some how i cant stream the video...

Oct
08
1 week ago
Activity icon

Replied to Hello..

don't have the subscription here. but i already bought nova. looks like don't have hasmany on the form.

Activity icon

Started a new Conversation Laravel Nova Belongsto Filter

i have post model with belongsto user some of the user is not active how to show only active user on belongsto?

Activity icon

Replied to Model With BelongsTo And BelongsToMany

im trying to create a new material from other material belongsto -> to new material belongstomany -> what material to be use to create new material

Oct
07
1 week ago
Activity icon

Started a new Conversation Model With BelongsTo And BelongsToMany

i have a Resource with this fields

public function fields(Request $request) { return [ BelongsTo::make('Material'),

        BelongsToMany::make('Materials')
            ->fields(function() {
                return [
                    Number::make('Quantity'),

                    Boolean::make('Need Test'),
                ];
            })
    ];
}

MODEL public function material() : BelongsTo { return $this->belongsTo(Material::class); }

public function materials() : BelongsToMany
{
    return $this->belongsToMany(Material::class, 'warehouse_chemical_formula_materials');
}

when i try to attach material i only get 1 input for material selection i cant add other info like quantity and need test.

when i remove BelongsTo::make('Material'),

i can add that field. anyone know how to fix this issue?

Oct
04
2 weeks ago
Activity icon

Replied to Laravel Nova Login To Multiple Guards

this merchant login using the nova login?

Oct
03
2 weeks ago
Activity icon

Started a new Conversation Hello..

hi, im new to laravel world. now using laravel-admin to create some work related web.

here is the pic https://imgur.com/KkXh1RA

i need to create a formula and have material list on the inside. is this possible to do it on nova? do i have to create a new field for this?

another thing. is there a way to update the view base on user selection on laravel? lets say if the plant selection id is 1 then hide the material field.