Rainieren

Rainieren

Member Since 3 Years Ago

Groningen

Experience Points
8,120
Total
Experience

1,880 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
24
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 2
8,120 XP
Sep
30
2 weeks ago
Activity icon

Started a new Conversation Vue.js Nested Transitions Not Displayed Correctly

I made some modals in jQuery and they worked fine. Now I am trying to make those same modals but with VueJS. I followed their documentation for making a modal and it worked perfectly. But what I am trying to do is to have a fade on the overlay and a slideIn animation on the content. While also in a foreach loop.

I got the foreach loop part working but the animations are not displayed properly. On first click the animation works like it should except for not showing the exit animation. But whenever I click the close button and open another one. The animations stop working all together. And whenever I click on the background, the modal gets displayed twice and leaves me with just the background. I am using animateCSS for the animations

The buttons:

 @foreach($projects as $k => $value)
     <div class="read-more mt-auto">
        <button @click="modal = {{$k}}" type="button" class="font-bold text-sm text-indigo-600 hover:text-indigo-500 transition duration-150 ease-in-out hover:text-indigo-900 flex items-center focus:outline-none">
         Read more <span class="read-more-arrow ml-2">→</span>
        </button>
     </div>
@endforeach

The modals:

@foreach($projects as $k => $value)
        <transition name="fade" @after-enter="showContent = true">
            <div v-if="modal === {{$k}}" @click="showContent = false" class="overlay fixed w-full overflow-hidden h-screen bg-gray-800 bg-opacity-75 top-0 left-0 flex z-10 items-center justify-center">
                <transition @after-leave="$emit('close')" enter-active-class="animate__animated animate__zoomIn animate__faster" leave-active-class="animate__animated animate__zoomIn animate__faster">
                    <div v-if="showContent" @click.stop class="content relative sm:max-w-full md:max-w-xl lg:max-w-4xl rounded-lg overflow-hidden shadow-lg bg-white m-5 z-20 pointer-events-auto p-6">
                        <div class="font-bold gilroy text-3xl mb-2">{{ $value['name'] }}</div>
                        <p class="text-gray-700 text-sm md:text-base lg:text-base xl:text-base mb-5">
                            {{ $value['description'] }}
                        </p>
                        <a href="{{ $value['html_url'] }}" class="" target="_blank">Bekijk het op GitHub</a>
                        <button @click="modal = false" class="absolute top-0 right-0 p-4 font-bold text-gray-600">×</button>
                    </div>
                </transition>
            </div>
        </transition>
    @endforeach

app.js file

const app = new Vue({
    el: '#app',
    data: {
        modal: false,
        showContent: false,
    },
})

I also used this Blog but it left me with the same issue.

Sep
24
3 weeks ago
Activity icon

Replied to Laravel 8 - Dispatch A Scheduled Job Every Minute

I think I forgot that part. Is it on here? https://laravel.com/docs/8.x/scheduling If so than I think I overlooked that part

Activity icon

Started a new Conversation Laravel 8 - Dispatch A Scheduled Job Every Minute

I am working on fetching all my GitHub repos with a job every minute so when I make changes to any repo these changes automatically go to my website as well. I created a job called ProcessGithub which uses GrahamCampbell's package to fetch the repos like this:

$repos = GitHub::connection('main')->me()->repositories();

I tested the line above and it correctly returns all my repos so no issues there.

The handle method within my Job looks like the one below and I added a job schedular to my Kernal.php

public function handle()
    {
        $repos = GitHub::connection('main')->me()->repositories();

        foreach($repos as $repo) {
            DB::table('projects')
                ->updateOrInsert(
                    ['name' => $repo["name"]],
                    [
                        'name' => $repo["name"],
                        'html_url' => $repo["html_url"],
                        'description' => $repo["description"],
                        'stargazers_count' => $repo["stargazers_count"],
                        'language' => $repo["language"],
                    ]
                );
        }
    }

Kernel.php

protected function schedule(Schedule $schedule)
    {
         $schedule->job(new ProcessGithub)->everyMinute();
    }

But it does not dispatch the job every minute and my database remains empty. I know I don't need to fetch the repos every minute but that is just for testing purposes, If it works every minute I could always change it back to days/hours

How can I accomplish this?

May
11
5 months ago
Activity icon

Started a new Conversation Binary Tree From 1 To 10 In All Traversals The Same Result

Hello, I have a question for an assignment which I don't really get. There is a question that states: Create a binary tree that stores digits from 1 to 10 where the result for an in-order, pre-order and post-order traversal is the same. Applying the rules I found on various websites, this can't be done right? Because when you create a binary tree with a node of let's say 6 and the most left leaf is 1. The result of a in-order traversal would be

8... ... ... ... ...

and the order of a pre-order would be

1... ... ... .. ...

Am I doing something wrong?