ejdelmonico

Owner at Del Monico Web Services LLC

Experience

187,305

152 Best Reply Awards

  • Member Since 2 Years Ago
  • 1009 Lessons Completed
  • 1 Favorite

18th May, 2017

ejdelmonico left a reply on Vue Axios Refresh • 1 week ago

Whichever manner you choose just remember that this is not the vue instance when using setInterval or setTimeout so you will have to fix that before you call it. Also, check https://vuejs.org/v2/api/#vm-nextTick for $nextTick() or $forceUpdate()

17th May, 2017

ejdelmonico left a reply on Vue.JS - Material Components - Mix/Webpack • 1 week ago

Well, why use require() when ES2015 makes it unnecessary via the import rule. Have a look at this http://researchhubs.com/post/computing/javascript/nodejs-require-vs-es6-import-export.html

Also, there are other articles around that will give more details as to why most are moving away from require() except in some use cases.

16th May, 2017

ejdelmonico left a reply on Best Practices For Server Updates? • 1 week ago

I can tell you the way I handle all of my Forge/Envoyer servers. First, as you are probably aware, the servers will perform security updates and update composer. The rest is up to you. Usually once per month, I run sudo apt update && sudo apt upgrade. There are a few package upgrades that will ask to change your config files to update or keep the old files...KEEP THE OLD CONFIG! Otherwise, you will have to provision a new server and start over...tracing what config needs to be changed takes too long so just whip up a new one.

Performing that once a month should be fine. Personally, I have a project demo server that I try the updates on before doing so on the production boxes. If you want more detailed information, I wouldn't hesitate to check out <serversforhackers.com>[https://serversforhackers.com].

ejdelmonico left a reply on Vue.JS - Material Components - Mix/Webpack • 1 week ago

Have a look at this library and are you compiling material-components as a module? Also, I would stay away from require() unless you are not using ES2015 in which case you would use the import statement.

13th May, 2017

ejdelmonico left a reply on Many To Many Query • 1 week ago

I would investigate using a "local scope" on the model because it seems you will be using that query more than once. Something like:

    public function scopeFeatures($query)
    {
        return $query->where('features', 1);
    }

ejdelmonico left a reply on ReactJS With Laravel • 1 week ago

Personally, I would add it in the beginning if that is what you are planning. Yes, react can be included. However, you will need to customize your Webpack config if using Mix to work properly. Just remove the Vue references and setup react. The real difference is you will need to adapt your project structure from normal react apps so that it works well with Laravel...I suggest setting up laravel as an api to use with react components.

ejdelmonico left a reply on Homestead Up - Vagrant Error • 1 week ago

@wallyj Please format code submissions so we can read it. Use 3 backticks before and after the code blocks. Post your entire Homestead.yaml file and make sure you are using the latest Homestead and Vagrant.

26th April, 2017

ejdelmonico left a reply on Auth Middle Ware Error ERR_TOO_MANY_REDIRECTS • 4 weeks ago

@williamc1983 To add to what Snapey stated, once everything is cleared...the session cookie is gone so Chrome doesn't find the user already logged while you are trying to login again. Additionally, Firefox will do the same on occasion. If the issue occurs on a site you need to access and just can't because of the redirect loop, just try accessing a page that you know is guarded by credentials and it should avoid the endless redirect loop.

17th April, 2017

ejdelmonico left a reply on Mail Not Using From Adress • 1 month ago

Can you post the entire Contact mailable class? So far, I do not see an issue.

ejdelmonico left a reply on Mail Not Using From Adress • 1 month ago

Are you positive that $this->name is what you expect? The signature for the method is

/**
     * Set the sender of the message.
     *
     * @param  object|array|string  $address
     * @param  string|null  $name
     * @return $this
     */
    public function from($address, $name = null)
    {
        return $this->setAddress($address, $name, 'from');
    }

ejdelmonico left a reply on Mail Not Using From Adress • 1 month ago

Mail has changed with each release of Laravel. How about telling us which version you are using (5.3, 5.4, 5.5)?

ejdelmonico left a reply on Incorrect Url In Compiled Css File • 1 month ago

Did you copy your fonts/ to the correct path in public/? If not, the processed css will not find the files.

ejdelmonico left a reply on Can't Make Spark Installation Work • 1 month ago

@mrad This could be caused by a number of problems. I haven't used Spark for about a year now but everything is close to as it was. The primary failures of Spark development installations are the Laravel and Spark installers being outdated as well as not running a newer version of Node. The reason being that Spark pulls in the current Laravel version and Cashier and then alters the appropriate files. In essence, there a lot of possible failure points during installation. When troubleshooting, check the low hanging fruit first like current installers and Node version.

Also, if using Homestead, I use "nfs" so that things are faster in the Spark project. Report back what you verified with versions on the install.

31st March, 2017

ejdelmonico left a reply on [SOLVED] Cloudflare Not Work With Laravel • 1 month ago

Taylor Otwell published an article detailing how to do it. Search Medium for it. Also, I have over 25 Laravel sites running on SSL with Cloudflare and it's very easy to set up correctly. Just check around for articles but start with Taylor's first.

ejdelmonico left a reply on Being DDoS Attacked And How To Prevent From It • 1 month ago

Hmm, I have never tried anything like that on Cloudflare. However, there has to be an article or two on similar type projects that you can reference. Cloudflare will definitely do the job if you can devise a solution to solve the waiting time. Maybe something like upload/download directly to/from S3 or something. I would tend to separate the video processing from my site to increase availability and stability.

Maybe you could write a quick note to Cloudflare support and ask. They are pretty good about responding.

ejdelmonico left a reply on Forge: Forge Script Able To Run Php Artisan Migrate:refresh? • 1 month ago

You can do a dump of the data and do a quick comparison to make sure it is correct before refreshing the DB. As you are aware, running that artisan command will wipe everything. What I have done in the past is freeze everything and make a DB copy to local and run the refresh and restore on the local copy. This way, I can check for any unforeseen issues before I wipe everything on production.

ejdelmonico left a reply on Being DDoS Attacked And How To Prevent From It • 1 month ago

I suggest that you use Cloudflare or a similar product. It's cheap and works very well. You will minimize the DDoS attacks and it is easy to configure.

ejdelmonico left a reply on Laravel-Mix (WebPack) Does Not Work On Linux When Deploying (work On Mac) • 1 month ago

@nanosolutions It would be advisable that you do some reading on modern workflows and how a repo is used in different scenarios. You, my friend, definitely do not understand the process of versioning and effective use of deploying from a repo.

30th March, 2017

ejdelmonico left a reply on How Do I Include NPM Installed JS Library E.g JQuery UI • 1 month ago

You should search a bit better. This answer should do it for you.

https://laracasts.com/discuss/channels/elixir/use-jquery-ui-with-webpack

ejdelmonico left a reply on How To Configure Webpack And Drop Elixir/Gulp From My Project? • 1 month ago

There really isn't much to configure for a Laravel project that is not already done for you. In the github project, you will find some docs on usage. The rest is just understanding how Webpack works and what it is used for. You will find with experience that Webpack is very flexible and can be used in any situation.

ejdelmonico left a reply on Laravel-Mix (WebPack) Does Not Work On Linux When Deploying (work On Mac) • 1 month ago

As @zachleigh states, you are misunderstanding the deployment process and the basics of Webpack. With Webpack, everything is a dev dependency unless you are going to use it separately in production. Everything is bundled up and ready to use so those processed files are committed to the repo and deployed for production. You should not be installing any dev dependencies or running npm scripts on the production server.

28th March, 2017

ejdelmonico left a reply on JQuery Ui And App.js Conflict • 1 month ago

You need to provide some code and show how you are applying jquery-ui. Check my previous posts on including jquery-ui with webpack as well.

12th March, 2017

ejdelmonico left a reply on Bootstrap Classes Broke After Versioning With Laravel-elixir. • 2 months ago

Well, the only thing that stands out is you forgot quotes are the url for your import statement. Maybe that messed up the uglify process. Also, sometimes you have to scroll up to see warnings.

ejdelmonico left a reply on Mix All JS In Directory • 2 months ago

Look at the docs here

mix.combine(['one.js', 'two.js'], 'merged.js');

You should be able to use a wildcard as well like *.js

ejdelmonico left a reply on What Is The Right Way To Package All JS And CSS File Under One File In Laravel 5.4? • 2 months ago

My basic recommendation is to use ES6 import statement to bring in packages. The require() statement will eventually be the non standard way of including packages. If the package does not export, you will have to tell Webpack about it like I mentioned above. Usually, you will need to either declare a vendor package or use an alias.

11th March, 2017

ejdelmonico left a reply on Laravel Mix - How Exclude Vue.js • 2 months ago

Just remove the Vue require() statements in boostarp.js, the vue instance and vue from package.json.

ejdelmonico left a reply on What Is The Right Way To Package All JS And CSS File Under One File In Laravel 5.4? • 2 months ago

Definitely use Webpack. It takes a bit if work to understand the configurations but there is a plugin for everything and it is infinitely adaptable to whatever your current project needs. There are many tutorials on webpack. There are many videos on Laracasts and a great tutorial on Udemy called Webpack 2 by Stephen Grider (watch for sales on Udemy and you can get the course for $15).

9th March, 2017

ejdelmonico left a reply on Datepicker 4.15.35 With Bootstrap 4.0.0 • 2 months ago

@wirli Have you tried using ES6 import instead of processing through webpack config? Webpack will still process the import. However, I am not sure if the package you are using is exportable. Otherwise, there are plenty of webpack packages for datetime.

8th March, 2017

ejdelmonico left a reply on Laravel Mix And React Js • 2 months ago

Check your Babel processing. The spread operator requirements are probably missing or incomplete.

ejdelmonico left a reply on Elixir Webpack Official Not Npm Installing • 2 months ago

The error seems to indicate that you do not have git installed...or, it can't find it.

ejdelmonico left a reply on Elixir Webpack Official Not Npm Installing • 2 months ago

Try a global install first. Sometimes, it's the only way to get things to work with all of those packages. npm install -g laravel-elixir-webpack-official

then

npm install laravel-elixir-webpack-official --save-dev

That should give you 1.0.10

ejdelmonico left a reply on 'npm Install' Error On New Homestead VM • 2 months ago

For homestead, you run everything from the project directory and it will mirror to the vm. That is what the Homestead.yaml file is for. If you don't have artisan setup to run from your host machine, the you will need to ssh into the vm's project directory to run artisan migrate etc.

ejdelmonico started a new conversation Laracon Online Was Great! • 2 months ago

Laracon Online was excellent and more than worth the $15.00 ticket fee. I would recommend everyone who didn't see the presentations, to legally watch them when they are published!!

6th March, 2017

ejdelmonico left a reply on Laravel Mix Is Breaking A Feature Test? • 2 months ago

I was just wondering if something didn't install properly. Another thing I have done in past when having issues with a manifest file is to trash everything that npm run dev produces in the public directory and re-run it. So, that would be to remove the

  • css/
  • js/
  • fonts/
  • mix-manifest.json

It's worth a shot.

ejdelmonico left a reply on Security Updates • 2 months ago

I believe Forge updates the packages it installs. I wouldn't begin to believe that it installs all security packages. Could they possibly be from packages that you installed? The only reason I say this is because I see pending updates for my servers all the time but they are usually for packages I install AND security packages that are breaking...in other words install them but select the already installed config file or you might break something.

ejdelmonico left a reply on Laravel Mix Is Breaking A Feature Test? • 2 months ago

Do any of the ExampleTest files work ( Features/ExampleTest or Unit/ExampleTest)?

ejdelmonico left a reply on Laravel Mix Is Breaking A Feature Test? • 2 months ago

Hmm, that is really odd. Try clearing all caches through artisan. It's a crap shoot, but I have seen stranger things.

ejdelmonico left a reply on Laravel Mix Don't Write File In Production. • 2 months ago

First off, unless your EC2 instance can compile production files on the fly like Heroku, you need to commit your file to the repo. For instance, I commit the dev compiled files during development. When I am ready to go to production, I run the production flag and test. After it checks out, I commit to repo and deploy. You can do it that way, or use Envoy to make everything work for you in a script file.

https://laravel.com/docs/5.4/envoy

ejdelmonico left a reply on Laravel Mix Is Breaking A Feature Test? • 2 months ago

Assuming that the test file is standard, are you using versioning? Also, make sure you upgrade to the latest Mix.

ejdelmonico left a reply on React Not Transpiling Under Larave-mix • 2 months ago

@ruru If this worked for you, please mark it correct so others can use it.

ejdelmonico left a reply on Datepicker 4.15.35 With Bootstrap 4.0.0 • 2 months ago

You can use the jQuery UI datepicker. It is easy to use.

ejdelmonico left a reply on Add Select Box And Input When Button Clicked • 2 months ago

If this select is likely to be used often, I would hide the elements on load and then use a click event to show if the button is clicked. Having to add to the DOM is expensive unless you are using Vue. If using Vue, you can easily do it. Just have a look at the docs for examples.

5th March, 2017

ejdelmonico left a reply on Sass IncludePaths With Laravel-mix/webpackConfig • 2 months ago

You can't include a config addon after you call mix. You need to do it first by itself for best results...then call mix.sass().js().

mix.webpackConfig({
  new webpack.LoaderOptionsPlugin({
    test: /\.s[ac]ss$/,
    options: {
      includePaths: [
          path.resolve(__dirname, './node_modules/bootstrap-sass/assets/')
        ]
    }
  })
});

3rd March, 2017

ejdelmonico left a reply on PhpStorm Space In Github • 2 months ago

As @bashy mentioned, just uncheck both "Use tab character" and "Smart tabs". You don't need it.

2nd March, 2017

ejdelmonico left a reply on React Not Transpiling Under Larave-mix • 2 months ago

It long...sorry:

const path = require('path');
const webpack = require('webpack');

module.exports = {
    entry: [
        'script-loader!jquery/dist/jquery.min.js',
        'script-loader!foundation-sites/dist/js/foundation.min.js',
        './app/app.jsx'
    ],
    externals: {
        jquery: 'jQuery'
    },
    plugins: [
        new webpack.ProvidePlugin({
            '$': 'jquery',
            'jQuery': 'jquery'
        }),
        // new webpack.LoaderOptionsPlugin({
        //     test: /\.s[ac]ss$/,
        //     options: {
        //         sassLoader: {
        //             includePaths: [
        //                 path.resolve(__dirname, './node_modules/foundation-sites/scss')
        //             ]
        //         }
        //     }
        // })
        new webpack.LoaderOptionsPlugin({
            test: /\.s[ac]ss$/,
            options: {
                includePaths: [
                    path.resolve(__dirname, './node_modules/foundation-sites/scss/')
                ]
            }
        })
    ],
    output: {
        path: __dirname,
        filename: './public/bundle.js'
    },
    resolve: {
        modules: [
            path.resolve(__dirname, 'app/components'),
            path.resolve(__dirname, 'app/api'),
            path.resolve(__dirname, 'node_modules')
        ],
        alias: {
            applicationStyles: path.resolve(__dirname, 'app/css/app.scss'),
            actions: path.resolve(__dirname, 'app/actions/actions.jsx'),
            reducers: path.resolve(__dirname, 'app/reducers/reducers.jsx'),
            configureStore: path.resolve(__dirname, 'app/store/configureStore.jsx')
        },
        extensions: ['.js', '.jsx', '.json', '.scss']
    },
    module: {
        rules: [
            {
                test: /\.jsx?$/,
                exclude: /(node_modules|bower_components)/,
                loader: 'babel-loader',
                options: {
                    presets: ['react', 'es2015', 'stage-0']
                }
            }
        ]
    },
    devtool: 'cheap-eval-source-map'
};

ejdelmonico left a reply on Sass IncludePaths With Laravel-mix/webpackConfig • 2 months ago

I do it similarly like this:

        new webpack.LoaderOptionsPlugin({
            test: /\.s[ac]ss$/,
            options: {
                includePaths: [
                    path.resolve(__dirname, './node_modules/foundation-sites/scss/')
                ]
            }
        })

ejdelmonico left a reply on How To Configure IncludePaths For SASS On Mix? • 2 months ago

Or, you can do as I do it with:

new webpack.LoaderOptionsPlugin({
            test: /\.s[ac]ss$/,
            options: {
                includePaths: [
                    path.resolve(__dirname, './node_modules/foundation-sites/scss/')
                ]
            }
        })

1st March, 2017

ejdelmonico left a reply on Managed Hosting For Laravel • 2 months ago

I use both Forge and Envoyer with Digital Ocean for all of my Laravel projects (about 13 so far) and it makes life very easy.

ejdelmonico left a reply on React Not Transpiling Under Larave-mix • 2 months ago

Mix is definitely set up with the babel-loader for jsx files. You can check that in the webpack.config.js. I make my own webpack.config.js file and don't use Mix for react projects. Make sure you have a .babelrc with presets of 'es2015', 'react'. You may be missing the react preset.

ejdelmonico left a reply on Font-Awesome With Webpack • 2 months ago

Look over this page:

https://github.com/gowravshekar/font-awesome-webpack

If that doesn't suit you, you can make an alias for font-awesome so you can require it. Just look at the Mix docs for how to add to config. Adding an alias is easy but using a webpack specific package is better.

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.