EmilMoe

Software Engineer at Online

Member Since 6 Years Ago

Phnom Penh

Experience Points
36,720
Total
Experience

3,280 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
164
Lessons
Completed
Best Reply Awards
12
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.

  • community-pillar Created with Sketch.

    Community Pillar

    Earned once your experience points ranks in the top 10 of all Laracasts users.

Level 8
36,720 XP
Dec
01
2 days ago
Activity icon

Replied to PHP - Opposite Of Array_merge?

How should PHP know how to split an array?

Activity icon

Replied to Send Data From An Array To A View

You want to open a new page (view) with the user that's clicked? Then you need to make a route and pass $perfil->id.

Activity icon

Awarded Best Reply on Optimizing Vue Code

I realized it's not possible to pass a method like that, but you can inline it like here:

https://jsfiddle.net/nsh0v95c/1/

From there you can either call another method or simply inline it if it's short, but it's harder to reuse of course.

Activity icon

Replied to Optimizing Vue Code

I realized it's not possible to pass a method like that, but you can inline it like here:

https://jsfiddle.net/nsh0v95c/1/

From there you can either call another method or simply inline it if it's short, but it's harder to reuse of course.

Activity icon

Replied to Vue.js Not Detected In Production

You do not need to "install" it on the server as it's along with your app. Did you push the .js files to git? Or do you run npm run prod on the server? (You need to do one of these).

Could be something wrong with the settings. Is it possible for you to share a link to the site?

Activity icon

Replied to Optimizing Vue Code

You can maybe add it to <button> but you cannot use :key on <template> 😊

Activity icon

Replied to Optimizing Vue Code

You can do it like this

<template v-for="btn in buttons">
  <button :class="{bspin : dis}" :disabled="dis" class="create" @click.prevent="btn.click">{{ btn.label }}</button>
</template>

...

data() {
  return {
    buttons: [{click: this.organizer(), label: 'Organizer}, {...}]
  }
}

It won't save much code, but if you need to edit the HTML it will save you time.

Nov
18
2 weeks ago
Activity icon

Started a new Conversation Laravel And Tailwind

I'm trying to install Tailwind, but so far I haven't succeeded to build my assets as it keeps failing:

ERROR in ./resources/css/tailwind.css
Module build failed (from ./node_modules/css-loader/index.js):
ModuleBuildError: Module build failed (from ./node_modules/postcss-loader/src/index.js):
Error: PostCSS plugin tailwindcss requires PostCSS 8.
Migration guide for end-users:
https://github.com/postcss/postcss/wiki/PostCSS-8-for-end-users

I do have postcss installed:

"postcss": "^8.1.7",
Nov
01
1 month ago
Activity icon

Started a new Conversation S3: 503 Slow Down

I'm receiving this a lot. As far as I can see, I have to implement something that pauses like 1 second every time I get this error?

Does such fix exist for Laravel Filesystem?

Oct
14
1 month ago
Activity icon

Replied to BrowserSync + Valet. Not Possible?

I just realized the command for BrowserSync is npm run watch. That helps a lot of course!

However, can someone help me how to enable hot reload so I don't have to refresh ?

Activity icon

Started a new Conversation BrowserSync + Valet. Not Possible?

I'm trying everything here to make BrowserSync (npm run hot) to work. But no matter what I do the asset URLs are not working at all.

I tried to add this config:

    .browserSync({
        open: false,
        host: 'project.test',
        proxy: 'project.test',
    })

But the domain serving it is wrong and the asset paths are not working.

 「wds」: Project is running at http://localhost:8080/
ℹ 「wds」: webpack output is served from http://localhost:8080/

What can I Have been doing wrong?

Oct
13
1 month ago
Activity icon

Started a new Conversation DigitalOcean Apps, Laravel Scheduler

I found this thread in DO's support community: https://www.digitalocean.com/community/questions/cron-jobs-for-app-platform

However, as I write there, I have still not managed to set up such a worker for Laravel cronjobs/scheduled tasks in DigitalOceans new "Apps". My solution so far is manually hosting a droplet for this purpose, which I then have to manually update.

It seems as the problem is, that the worker cannot access NPM repositories online and I have no clue how to disable npm install, and I'm sure if I did that, then composer install would suffer after.

Have any of you managed to get this working?

Sep
13
2 months ago
Activity icon

Replied to Laravel 8 And Sentry

Thank you @ismaile

Activity icon

Started a new Conversation Laravel 8 And Sentry

I'm trying to upgrade to Laravel 8, but Sentry keeps bugging me. Any ideas?

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for sentry/sentry-laravel ^1.9.0 -> satisfiable by sentry/sentry-laravel[1.9.0, 1.x-dev].
    - Can only install one of: guzzlehttp/guzzle[7.0.1, 6.5.x-dev].
    - Can only install one of: guzzlehttp/guzzle[7.0.x-dev, 6.5.x-dev].
    - Can only install one of: guzzlehttp/guzzle[7.1.x-dev, 6.5.x-dev].
    - Conclusion: install guzzlehttp/guzzle 6.5.x-dev
    - Installation request for guzzlehttp/guzzle ^7.0.1 -> satisfiable by guzzlehttp/guzzle[7.0.1, 7.0.x-dev, 7.1.x-dev].

From composer.json:

"guzzlehttp/guzzle": "^7.0.1",
"sentry/sentry-laravel": "^1.9.0",

Aug
24
3 months ago
Activity icon

Replied to Merging 4 Databases

SELECT TABLE_NAME, AUTO_INCREMENT
FROM   information_schema.TABLES
WHERE  TABLE_SCHEMA = '__DATABASE__'

This gives me the max ID in each table, I can add that to the next one before import. That might work.

Activity icon

Replied to Merging 4 Databases

For small databases yes. There are more than 10.000.000 records, so I'm not sure about that.

Activity icon

Replied to Merging 4 Databases

It's an idea yes, unfortunately, there are 30 tables and this would be a slow process.

Another option would be to write a custom importer, but that's not a small task either.

Activity icon

Replied to Merging 4 Databases

Yes, they are all the exact same structures

Sorry, I mistakenly clicked 'best answer', now I cannot remove that again.

Activity icon

Started a new Conversation Merging 4 Databases

I have an application that unfortunately has been allowed to grow on 4 setups. That's too much maintenance, therefore it must be converted into 1 SaaS setup.

Any good ideas on how I can merge those 4 databases where there will be a lot of duplicated IDs?