kodeninja

kodeninja

Member Since 8 Months Ago

Experience Points
220
Total
Experience

4,780 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
0
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
220 XP
06 Aug
1 month ago

kodeninja left a reply on Job Does Not Fail On RuntimeException

Can anyone confirm that Job's failed() method is not called on RuntimeException?

04 Aug
1 month ago

kodeninja started a new conversation Job Does Not Fail On RuntimeException

I've had a Guzzle ClientException thrown in a job's handle() function and so the job was endlessly returned to the queue and retried, although I've set public $tries = 1;.

Reviewing the code it seems RuntimeException is not caught and since the job did not finish nor failed, it is returned to the queue.

I believe using Guzzle in a Job is pretty common (sending emails, calling API,...) and many of its thrown exceptions inherit from RuntimeException..

It doesn't make sense to me that Laravel does not catch RuntimeException on Jobs...am I missing something?

21 May
3 months ago

kodeninja left a reply on When To Clear Each Of The Cache Types?

@SNAPEY - What kind a values does cache:clear clears?

that was quick :-) thanks a bunch!

kodeninja started a new conversation When To Clear Each Of The Cache Types?

Hi,

These are the artisan commands I know which clear cache: route:clear config:clear event:clear optimize:clear route:clear view:clear cache:clear

I know I'm supposed to call view:clear every time I update one of my views and release to production (am I right?) but I wonder when should each of the other commands should be run? Also, is there anything that is cleared when using cache:clear but does not have a specific cmd?

I'd appreciate it if someone can make things more "clear" for me as documentation is not ;-)

20 Jan
8 months ago

kodeninja left a reply on Exception When Running "npm Run Watch-poll" After Upgrading To 5.7

npm uninstall vue --save-dev still throws the same exception...

17 Jan
8 months ago

kodeninja left a reply on Exception When Running "npm Run Watch-poll" After Upgrading To 5.7

webpack.mix.js:

mix.webpackConfig({
    module: {
        rules: [{
            test: /\.css$/,
            loader: 'style-loader!css-loader'
        }]
    }});

mix.react('resources/js/d.js', 'public/js');
mix.sass('resources/sass/dashboard/d.scss', 'public/css');

mix.sass('resources/sass/app/a.scss', 'public/css')
.js('resources/js/a.js', 'public/js');


mix.browserSync({
    // proxy: 'local.trans',
    proxy: 'my.local.trans',
    open: false,
    scrollProportionally: false,
});

package.json:

{
  "private": true,
  "scripts": {
    "dev": "npm run development",
    "development": "node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
    "watch": "npm run development -- --watch",
    "watch-poll": "npm run watch -- --watch-poll",
    "hot": "node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
    "prod": "npm run production",
    "production": "node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
  },
  "devDependencies": {
    "@babel/preset-react": "^7.0.0",
    "@uppy/core": "^0.29.0",
    "@uppy/dashboard": "^0.29.0",
    "@uppy/dropbox": "^0.29.0",
    "@uppy/google-drive": "^0.29.0",
    "@uppy/react": "^0.29.0",
    "@uppy/url": "^0.29.0",
    "@uppy/xhr-upload": "^0.29.0",
    "axios": "^0.18",
    "bootstrap": "^4.2.1",
    "browser-sync": "^2.26.3",
    "browser-sync-webpack-plugin": "^2.0.1",
    "cross-env": "^5.1",
    "css-loader": "^2.1.0",
    "jquery": "^3.2",
    "laravel-mix": "^4.0.7",
    "lodash": "^4.17.5",
    "moment": "^2.22.2",
    "node-sass": "^4.11.0",
    "nprogress": "^0.2.0",
    "popper.js": "^1.14.5",
    "prop-types": "^15.6.2",
    "react": "^16.7.0",
    "react-dom": "^16.7.0",
    "react-icons": "^3.2.2",
    "react-router-dom": "^4.3.1",
    "react-spinners": "^0.3.3",
    "react-sticky-el": "^1.0.20",
    "reactstrap": "^7.1.0",
    "resolve-url-loader": "^2.3.1",
    "sass": "^1.15.2",
    "sass-loader": "^7.1.0",
    "slate": "^0.41.2",
    "slate-react": "^0.18.10",
    "video.js": "^7.4.1",
    "vue": "^2.5.17",
    "vue-template-compiler": "^2.5.22"
  }
}

kodeninja left a reply on Exception When Running "npm Run Watch-poll" After Upgrading To 5.7

To get around this issue I have changed a line in node_modules\laravel-mix\src\components\JavaScript.js:10

from

JavaScript.vueWebpackConfigApplied = false;

to

JavaScript.vueWebpackConfigApplied = true;

this var is being used in line 88, but it's hard for me to understand it:

    /**
     * Override the generated webpack configuration.
     *
     * @param {Object} webpackConfig
     */
    webpackConfig(webpackConfig) {
        if (!JavaScript.vueWebpackConfigApplied) {
            this.vue.webpackConfig(webpackConfig);
        }

        JavaScript.vueWebpackConfigApplied = true;
    }

I'm new to Laravel, if there's any other venue to post this issue and have a Laravel dev take a look, please let me know

kodeninja started a new conversation Exception When Running "npm Run Watch-poll" After Upgrading To 5.7

Hi,

I've just upgraded from Laravel 5.6 to 5.7: followed the upgrade docs and implemented all changes using the GitHub comparison tool.

I'm not using Vue but rather ReactJS and my webpack.mix.js calls "mix.react" accordingly.

After upgrading, I can no longer run "npm run watch-poll" - the following exception is thrown:

[path-removed]/laravel/node_modules/webpack-cli/bin/cli.js:235
throw err;
^

TypeError: Cannot read property 'find' of undefined
at updateCssLoader.rule ([path-removed]/laravel/node_modules/laravel-mix/src/components/Vue.js:43:26)
at Vue.updateCssLoader ([path-removed]/laravel/node_modules/laravel-mix/src/components/Vue.js:91:21)
at Vue.updateCssLoaders ([path-removed]/laravel/node_modules/laravel-mix/src/components/Vue.js:42:14)
at Vue.webpackConfig ([path-removed]/laravel/node_modules/laravel-mix/src/components/Vue.js:32:14)
at JavaScript.webpackConfig ([path-removed]/laravel/node_modules/laravel-mix/src/components/JavaScript.js:90:22)
at Mix.listen.config ([path-removed]/laravel/node_modules/laravel-mix/src/components/ComponentFactory.js:75:54)
at events.(anonymous function).forEach.handler ([path-removed]/laravel/node_modules/laravel-mix/src/Dispatcher.js:34:47)
at Array.forEach (<anonymous>)
    at Dispatcher.fire ([path-removed]/laravel/node_modules/laravel-mix/src/Dispatcher.js:34:28)
    at Mix.dispatch ([path-removed]/laravel/node_modules/laravel-mix/src/Mix.js:119:25)
    at WebpackConfig.build ([path-removed]/laravel/node_modules/laravel-mix/src/builder/WebpackConfig.js:28:13)
    at Object.<anonymous> ([path-removed]/laravel/node_modules/laravel-mix/setup/webpack.config.js:29:38)
        at Module._compile ([path-removed]/laravel/node_modules/v8-compile-cache/v8-compile-cache.js:178:30)
        at Object.Module._extensions..js (module.js:663:10)
        at Module.load (module.js:565:32)
        at tryModuleLoad (module.js:505:12)
        at Function.Module._load (module.js:497:3)
        at Module.require (module.js:596:17)
        at require ([path-removed]/laravel/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
        at WEBPACK_OPTIONS ([path-removed]/laravel/node_modules/webpack-cli/bin/convert-argv.js:115:13)
        at requireConfig ([path-removed]/laravel/node_modules/webpack-cli/bin/convert-argv.js:117:6)
        at [path-removed]/laravel/node_modules/webpack-cli/bin/convert-argv.js:124:17
        at Array.forEach (<anonymous>)
            at module.exports ([path-removed]/laravel/node_modules/webpack-cli/bin/convert-argv.js:122:15)
            at yargs.parse ([path-removed]/laravel/node_modules/webpack-cli/bin/cli.js:232:39)
            at Object.parse ([path-removed]/laravel/node_modules/yargs/yargs.js:567:18)
            at [path-removed]/laravel/node_modules/webpack-cli/bin/cli.js:210:8
            at Object.<anonymous> ([path-removed]/laravel/node_modules/webpack-cli/bin/cli.js:500:3)
                at Module._compile (module.js:652:30)
                at Object.Module._extensions..js (module.js:663:10)
                at Module.load (module.js:565:32)
                at tryModuleLoad (module.js:505:12)
                at Function.Module._load (module.js:497:3)
                at Module.require (module.js:596:17)
                at require (internal/module.js:11:18)
                at Object.<anonymous> ([path-removed]/laravel/node_modules/webpack/bin/webpack.js:155:2)

I'd appreciate it if anyone can point me to the right direction with this..

Thanks!