gidaban79

gidaban79

Member Since 3 Years Ago

leeds

Experience Points
11,520
Total
Experience

3,480 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
88
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 3
11,520 XP
Dec
02
1 month ago
Activity icon

Replied to Emit Array To Parent?

I already attached code.

Dec
01
1 month ago
Activity icon

Replied to Emit Array To Parent?

Thanks working well :)

However i have another question,

how to emit it like

array [
    search_amenity [1,4,7,8]
]

because i have more than one checkbox list and i want to combine it in one array and post to controller

Nov
27
2 months ago
Activity icon

Started a new Conversation Emit Array To Parent?

Hello Guys,

I want to make a search based on vue.js and laravel.

I have already separe Parent and child component. I am trying to emmit selected checkboxes in child to parent component.

<template>

    <div class="col-4 text-left small">
        <span class="text-muted"><strong>Amenities:</strong></span>
        <div class="col-12-md" v-for="amenity in amenities.data">
            <div class="form-check">
                <input class="form-check-input" type="checkbox" v-model="search_amenity" :value="amenity.id"
                       :id="amenity.id" @click="onClickButton">
                <label class="form-check-label" :for="amenity.id">
                    {{amenity.name}}
                </label>
            </div>
        </div>
        <span>{{ search_amenity }}</span>
    </div>
</template>

<script>
    export default {
        name: "Amenities",
        data() {
            return {
                amenities: [],
                search_amenity: [],
            }
        },
        mounted() {
            this.fetch();
        },
        methods: {
            onClickButton(event) {
                this.$emit('search_amenity', this.search_amenity);
            },
            fetch() {
                axios.get('searchOptions/amenities')
                    .then(response => {
                        if (response.data) {
                            this.amenities = response.data
                        }
                    })
            }
        }
    }
</script>

<style scoped>

</style>

How you can see ' {{ search_amenity }}' i am displaying array of selected options as checkbox`s however in mi parent component i am catching values after second click.

What i am doing wrong ?

Aug
18
5 months ago
Activity icon

Replied to Integrate Klarna With Laravel

After fill address form and press submit button, i am getting error:

'Sorry, the delivery option you chose cannot be processed. Please select another delivery option.'

Even i used example from oficial package.

Activity icon

Started a new Conversation Integrate Klarna With Laravel

I have already download package https://github.com/klarna/kco_rest_php, testing api already is setup.

I really don't know what is wrong with shipments.

"shipping_options" => [
                [
                    "id"               => "free_shipping",
                    "name"             => "Free Shipping",
                    "description"      => "Delivers in 5-7 days",
                    "price"            => 1000,
                    "tax_amount"       => 0,
                    "tax_rate"         => 0,
                    "preselected"      => true,
                    "shipping_method"  => "Postal",
                    'delivery_details' => [
                        'carrier' => 'Royal mail',
                        'class'   => 'second class',

                    ]
                ]
            ],

My shipping options however i am still getting error.

Aug
08
5 months ago
Activity icon

Started a new Conversation Any Chance For Refactor ?

Hello guys,

i wonder if is any chance for refactor this query?

public function scopeSearchByKeyword($query, $keyword = NULL, $location = NULL, $past = NULL)
    {

        if ($keyword != '') {
            $query->select('events.*')
                ->leftJoin('event_tag', 'events.id', 'event_tag.event_id')
                ->leftJoin('tags', 'tags.id', 'event_tag.tag_id')
                ->where(function ($query) use ($keyword, $location, $past) {
                    $query
                        ->where('events.secret', 0)
                        ->where("location_fullname", "LIKE", "%$location%")
                        ->where("title", "LIKE", "%$keyword%")
                        ->orWhere("description", "LIKE", "%$keyword%")
                        ->orWhere("tags.name", "LIKE", "%$keyword%");
                })->groupBy('events.id');
            if (!$past) {
                $query->where("start", ">", Carbon::now());
            }
            else{
                $query->where("start", "<", Carbon::now());
            }
            $query->orderBy('start');
        } else {
            $query->where(function ($query) use ($location) {
                $query
                    ->where("location_fullname", "LIKE", "%$location%");
            });
            if (!$past) {
                $query->where("start", ">", Carbon::now());
            }
            else{
                $query->where("start", "<", Carbon::now());
            }

        }
        return $query;
    }