euchimed

euchimed

Member Since 2 Months Ago

Experience Points
1,410
Total
Experience

3,590 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
10
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.

Level 1
1,410 XP
Jul
01
1 week ago
Activity icon

Replied to Verification Email In Laravel

Hello @a4ashraf The mail Come on mailtrap.io ;)

Activity icon

Started a new Conversation Verification Email In Laravel

Hiii Friends Please how to verify email user with real service mail, example gmail, hotmail, yahoo ? Thank you

Jun
30
1 week ago
Activity icon

Started a new Conversation Insert Data With Laravel And Vuejs

How To Insert title, description and image post with laravel and vuejs ?

Jun
22
2 weeks ago
Activity icon

Replied to How To Return Data Method To Template

How to fetch second parameter POST {stores.storeId} ?

Activity icon

Replied to How To Return Data Method To Template

Really Very Good, thank you very much SERGIU17

Activity icon

Replied to How To Return Data Method To Template

Ok friend thank you

Activity icon

Started a new Conversation How To Return Data Method To Template

Hi Friends, Please How to return data method panels() in v-for to template.

<template>
    <div>
        <div class="row">
            <div class="col">
                <div v-for="store in stores" :key="store.id">
                    <div class="card mb-3">
                        <div class="card-header" v-text="store.name_store"></div>
                        <div class="card-body" v-for="panel in panels(store.storeid)" :key="panel.id">
                                {{ panel.name }}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    props: ['stores'],
    methods: {
        panels(value) {
            axios.post('/panel-user', {value})
            .then(({data}) => {
                return data
            })
        }
    },
}
</script>
Activity icon

Started a new Conversation How To Return Data Method To Template

Hi Friends, Please How to return data method panels() in v-for to template

<template>
    <div>
        <div class="row">
            <div class="col">
                <div v-for="store in stores" :key="store.id">
                    <div class="card mb-3">
                        <div class="card-header" v-text="store.name_store"></div>
                        <div class="card-body" v-for="panel in panels(store.storeid)" :key="panel.id">
                                {{ panel.name }}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    props: ['stores'],
    methods: {
        panels(value) {
            axios.post('/panel-user', {value})
            .then(({data}) => {
                return data
            })
        }
    },
}
</script>
Jun
12
4 weeks ago
Activity icon

Replied to Get Path From Storage Directory Inside Vue Component In Laravel

Yes Tykus, is symlinked thank you very much

Activity icon

Started a new Conversation Get Path From Storage Directory Inside Vue Component In Laravel

How to get path from storage directory inside vue component in laravel ? image posts inside storage/app/public/posts

May
02
2 months ago
Activity icon

Started a new Conversation Add A Comment Without Refresh

I work on website commercial

I want to add a comment without refresh the page When adding a comment I want to verify the owner of the comment if he is a regular user or the owner of the product

If statment Cause a problem with the code when returning the result

code Javascript in view Product


$('#form-comments').on('submit', function (e) { e.preventDefault(); $.post($(this).attr('action'), {comment: $('#text-comment').val()}, function (response) { $('.response-comment').prepend(response.comment); $('#text-comment').val(''); $('#btn-comment').prop('disabled', true) });

This Method comment in controller

public function comment(Request $request, $id) { $this->validate($request, [ 'comment' => 'required', ]); if ($request->ajax()) { $product = Product::find($id);

        if ($product) {
            Comment::create([
                'user_id'    => auth()->user()->id,
                'product_id' => $product->id,
                'comment'    => $request->comment,
            ]);

            $comment = Comment::where('user_id', auth()->user()->id)->latest()->first();
            $add_comment = view('comments.add-comment', compact('comment'))->render();
            return response()->json(['comment' => $add_comment]);
        }
    }
}
this view add-comment.blade.php

@if($comment->product_id === $product->id && $comment->user_id === $product->store->user_id && $comment->product->store->avatar != '')  @else @if($comment->user->profil->avatar != '')  @else @if($comment->user->profil->avatar == '' && $comment->user->profil->gender == 'male')  @else  @endif @endif @endif
{!! $comment->product_id === $product->id && $comment->user_id === $product->store->user_id ? $comment->product->store->name_store  : $comment->user->first_name . ' ' . $comment->user->last_name !!}

{{ $comment->created_at->diffforhumans() }} @if(auth()->check() && $comment->user_id == auth()->user()->id) {{ $comment->comment }} Update @endif
{{ $comment->comment }}

@if(auth()->check() && $comment->user_id == auth()->user()->id) Update Delete @endif
Apr
26
2 months ago
Activity icon

Replied to Add If Statement To View And Render Data

Thank you Wingly

I work on website commercial

I want to add a comment without refresh the page When adding a comment I want to verify the owner of the comment if he is a regular user or the owner of the product

If statment Cause a problem with the code when returning the result

code Javascript in view Product

$('#form-comments').on('submit', function (e) { e.preventDefault(); $.post($(this).attr('action'), {comment: $('#text-comment').val()}, function (response) { $('.response-comment').prepend(response.comment); $('#text-comment').val(''); $('#btn-comment').prop('disabled', true) });

This Method comment in controller

public function comment(Request $request, $id) { $this->validate($request, [ 'comment' => 'required', ]); if ($request->ajax()) { $product = Product::find($id);

        if ($product) {
            Comment::create([
                'user_id'    => auth()->user()->id,
                'product_id' => $product->id,
                'comment'    => $request->comment,
            ]);

            $comment = Comment::where('user_id', auth()->user()->id)->latest()->first();
            $add_comment = view('comments.add-comment', compact('comment'))->render();
            return response()->json(['comment' => $add_comment]);
        }
    }
}

this view add-comment.blade.php

@if($comment->product_id === $product->id && $comment->user_id === $product->store->user_id && $comment->product->store->avatar != '') @else @if($comment->user->profil->avatar != '') @else @if($comment->user->profil->avatar == '' && $comment->user->profil->gender == 'male') @else @endif @endif @endif

{!! $comment->product_id === $product->id && $comment->user_id === $product->store->user_id ? $comment->product->store->name_store . ' صاحب المنتوج' : $comment->user->first_name . ' ' . $comment->user->last_name !!}

{{ $comment->created_at->diffforhumans() }} @if(auth()->check() && $comment->user_id == auth()->user()->id) {{ $comment->comment }} Update @endif

{{ $comment->comment }}

@if(auth()->check() && $comment->user_id == auth()->user()->id) Update Delete @endif
Activity icon

Started a new Conversation Add If Statement To View And Render Data

Hello, Please how to add if statement to view and render data with json to other page blade without refresh