Owner at Del Monico Web Services LLC

Hire Me



272 Best Reply Awards

  • Member Since 3 Years Ago
  • 1343 Lessons Completed
  • 1 Favorite

19th August, 2018

ejdelmonico left a reply on Vue SPA And SEO/Crawlers • 2 days ago

You can go to Google Webmaster Tools and see what Google crawler sees when they load your page. That way you will know if the ajax calls are completed when the crawler accesses the page. Also, you could lazyload some of the routes and Google crawler will still follow them in my experience. Nuxt works great and can be set up to server render the pages. The only thing is that you need to pay attention to the requirements for serving pre-rendered pages that use ajax calls with Nuxt...but it is not difficult and works great.

17th August, 2018

ejdelmonico left a reply on Vue Router And Reloading, How To Redirect To The Requested Page • 4 days ago

Vue router uses a fall-through type path matching so / will match all routes. Therefore, your code will require auth on all routes because the beforeEach() is catching the auth required meta. That is my thought process on this question.

ejdelmonico left a reply on VueJS Online/offline Status • 4 days ago

Well, I am not sure how it would best fit your project but since it will most likely be needed globally...I would use a mixin and you can check for:

function updateStatus() {
  if (navigator.onLine) {
    // gives Boolean
    // then do what you need like provide a message

// The create 2 event listeners for the online and offline events
window.addEventListener('online',  updateStatus);
window.addEventListener('offline',  updateStatus);


ejdelmonico left a reply on Convert Object To Array • 4 days ago

Try something like this:

const = { "1":5,"2":7,"3":0,"4":0,"5":0 };
const resultArray = Object.keys(obj).map(function(key) {
  return [Number(key), obj[key]];


10th August, 2018

ejdelmonico left a reply on Cloudflare + SSL + Vultr • 1 week ago

That is correct. If you use your own cert then you will have to place the correct path in the nginx config and renew it when necessary. I tend to stay away from self-issued certs but Cloudflare will accept those for full.

ejdelmonico left a reply on ExampleComponent.vue: Issue Just White Block Of Code • 1 week ago

Did you create a Vue instance and give the instance the element to render Vue inside of?

9th August, 2018

ejdelmonico left a reply on Cloudflare + SSL + Vultr • 1 week ago

All you need to do is first get an SSL cert from Let's Encrypt through you Forge server administration panel. Once verification is complete and the cert is installed on the site, go to Cloudflare and move your DNS control to them as they state in the docs. Once it is complete, just select Full instead of Flex and you are good to go. HHowever, you can't miss any of the steps or you will have to alter the process significantly. I have used this process for many sites already and it works great.

1st August, 2018

ejdelmonico left a reply on Merging Laravel Mix Config Into Webpack.config.js For Testing With Mocha-webpack • 2 weeks ago

Show how you are trying to merge the config. It should be in your webpack.mix.js file as mix.webpackConfig().

ejdelmonico left a reply on Need Help Deleting Images From My Storage • 2 weeks ago

You shouldn't be doing anything with the linked public path of the file. When you perform a delete as per the docs, https://laravel.com/docs/5.6/filesystem#deleting-files, the file should be gone from the storage directory. You shouldn't use a full url when referencing the file as Storage::delete('file.jpg');.

ejdelmonico left a reply on Connection Could Not Be Established With Host Smtp.mailtrap.io [php_network_getaddresses: Getaddrinfo Failed: No Such Host Is Known. #0] • 2 weeks ago

First, clear your config cache after changing your .env file values. php artisan config:clear. Then, try again.

ejdelmonico left a reply on Laravel Passport Allow Only One User To Log In? • 2 weeks ago

You must get client credentials for each user. If set up correctly, Passport will issue those credentials when you hit the token route. Those credentials can be used in the request header to access the API. They should be stored in the DB in the tables created by running the Passport migrations.

ejdelmonico left a reply on Getting Data Into Vue Component • 2 weeks ago

Shouldn't you reference the data object as this.problem = response? That is, assuming the ajax request is coming from the same component. Otherwise, Vue provides ways to access methods from parent or child components.

ejdelmonico left a reply on Getting Data Into Vue Component • 2 weeks ago

I do not see where support is defined. You have a data object which provides for an empty problem object and you are setting the response equal to support.problem. It would seem to me that maybe the support object is needed or set the problem equal to the response. I believe the error message is pretty accurate.

ejdelmonico left a reply on Vultr API Access Control • 2 weeks ago

You should whitelist the Forge IP address'. That is the only difference from Digital Ocean.

29th July, 2018

ejdelmonico left a reply on I Want To Learn Laravel But Lots Of Videos Seem Outdated • 3 weeks ago

Just use the 5.4 from scratch series to learn. Then, just review the changes of 5.5 and 5.6. There is a free Vue series as well.

ejdelmonico left a reply on Date Doesn't Appear In View • 3 weeks ago

How are you displaying the date? Show us the template code.

ejdelmonico left a reply on How To Turn Of Phpinfo On Freshly Deployed Forge Server? • 3 weeks ago

Just push your repo to the server or SSH into the server and modify the file in public by deleting the contents after <?php and replace it with echo 'It works!';. Save the file and when you hit the IP, it should say it works instead of the phpinfo.

ejdelmonico left a reply on MySql On Ubuntu Is Not Working Properly • 3 weeks ago

Did you create a DB user for the app like www or whatever user/group is assigned to nginx/apache? You need to create that user and give it proper permissions.

13th July, 2018

ejdelmonico left a reply on Error Installing Homestead In MAC • 1 month ago

It appears to be a corrupted VirtualBox install. I would re-install the latest version along with the latest version of Vagrant. Make sure Vagrant is installed first. Also, make sure your Xcode tools version is current before re-installing.

ejdelmonico left a reply on Unable To Connect To DB From Laravel App Or Sequel Pro • 1 month ago

@JaredKC There are known issues with having Docker running in the background and trying to use Valet. If you make sure Docker instances are halted before running Valet...and vice versa...you can use either one.

1st July, 2018

ejdelmonico left a reply on How Good Is Forge Support From Your Perspective? • 1 month ago

Usually, support questions are answered in a day or two depending if the question pertains to Forge. In your case, it seems that the credit card was not processed and it is probably because of a Stripe fraud protection feature. That is usually the reason the Stripe SDK returns an error relating to approval. I would check with Stripe first.

25th June, 2018

ejdelmonico left a reply on Gettin An Error While Installing Laravel Voyager • 1 month ago

Assuming you are using a recent version of MySQL or MariaDB, then you most likely have an invalid migration because that is what the error message is basically telling you. It is hard to give a more exact answer with little information to review. Pay close attention to your role_id for the foreign key. Remember that Laravel expects certain phrasing in how you reference table keys.

ejdelmonico left a reply on How To Set Vue Component When Root Of Site Is Opened • 1 month ago

You have the root path in your router two times. Get rid of the first one because it is not needed. Also, I would recommend either using Laravel as an api and vue-router in the frontend or just using Vue for components and Laravel for routing.

ejdelmonico left a reply on Vagrant, Docker Or What? • 1 month ago

Do you mean for development or production? The use case matters.

ejdelmonico left a reply on CSV Response • 1 month ago

Sure it is possible. You can use something like PHPLeague CSV. You can read about it at http://csv.thephpleague.com/

You can create a utility class that converts the data for you and makes it available for download.

ejdelmonico left a reply on Some Beginner PHP Advice • 1 month ago

It sounds like you should read more about Object Oriented PHP. Or, Jeffrey has some videos on it as well. As far as understanding the framework, I find that clicking through Laravel'various offerings and understanding the "container" is vital. For instance, in Phpstorm or VSCode, you can super + click on a method, class, property, etc and trace it through the framework code. Doing this will help you understand how to use them and how they are constructed.

To get some experience, offer to build a website for friends, family, etc. Try to use the entire process to get some exposure. For a simple site:

- Discovery
- Research
- Choose technologies
- Map out the site structure
- Wireframes
- Mockup
- Build it with tests
- Deliver the files

These are a few simple things you can practice while doing some free work so that you can understand what is involved. It sounds hard but really isn't. Just do what you can and each time you start a project, your processes will improve.

12th June, 2018

ejdelmonico left a reply on Vuex Nested Object Problem • 2 months ago

@jmurphy1267 You should have no issue getting the value from the nested object. From the object example you posted, it would seem that you could access the school name via user.user.school.name.

31st May, 2018

ejdelmonico left a reply on Struggling With Vuex Computed Properties • 2 months ago

Yes, Axios does return a promise with the response wrapped in a data object. You should not have to wrap Axios in a promise. There must be something in the structure of your Vue or Vuex instance that is causing the strange behavior.

29th May, 2018

ejdelmonico left a reply on Vagrant Ssh Php Artisan Serve Not Working But Works Outside. Why? • 2 months ago

That is because your cloned Homestead repo is not in the VM so there is no serve command. serve is an alias in Homestead repo for serve-laravel, which is a function method for serving Laravel applications. Look at /aliases on your system and in the Homestead cloned repo.

ejdelmonico left a reply on Fatal Error: Require(): Failed Opening Required '/home/forge/default/public/../vendor/autoload.php' • 2 months ago

Here is a typical one that I use in a Laravel project:


ejdelmonico left a reply on Fatal Error: Require(): Failed Opening Required '/home/forge/default/public/../vendor/autoload.php' • 2 months ago

Well, for production, I usually change the APP_URL to match the site url so that the project base path is correct. For the DB, yes, those are the normal values for MySQL in Ubuntu server. On a side note, Forge provisioning does all of the Nginx configurations for you, you shouldn't have to modify it except to add more aggressive caching. Essentially, you shouldn't have to do any modifications except to setup the deployment process. Are you installing Laravel differently than what is expected by Forge? I have many servers managed by Forge and the only issue that ever pops up is whether or not to do a composer install (which you would not with Spark).

28th May, 2018

ejdelmonico left a reply on GitHub Markdown • 2 months ago

ejdelmonico left a reply on Mailgun - Send Hundreds Of Thousands Of Emails • 2 months ago

Well, first of all, Mailgun restricts your ability to send a large number of emails unless approved and verified by their team. So, you need that first. As far as the most efficient way to do it, I would use a serverless function to take a customized list from your server and send out the emails. You could do it on your server but you would have to increase the size of your server to handle it all.

ejdelmonico left a reply on Laravel In A Subdirectory And Phpunit Gives Always 404 • 2 months ago

Did you set the correct directory in composer.json for autoloading? The default has the Test directory linked to the default root directory.

27th May, 2018

ejdelmonico left a reply on PhpMailer • 2 months ago

What service are you using to send mail? Maybe the config values or access keys have a small mistake in the env file. You can change the mail driver to log for troubleshooting and then check the logs directory to see what exactly is failing.

26th May, 2018

ejdelmonico left a reply on PhpMailer • 2 months ago

Laravel uses SwiftMailer behind the scenes: "swiftmailer/swiftmailer": "~6.0". What errors are you getting exactly? And, what changes did you make? Laravel caches env values so whenever you change one, you should run php artisan config:clear.

ejdelmonico left a reply on SinglePageApps (Vue/angularJs/etc) Design/coding Approach-methodology • 2 months ago

Obviously, the project usually has restrictions and requirements but if I have the choice, I usually form the basic API first so that I know exactly how the data will be served. The, I use either @vue/cli or create-react-app for the frontend. If the frontend and backend are in the same domain, you won't need CORS. If you do need it, then use the spatie package. I also use Passport for auth when the backend is on a different server. Otherwise, I just use the Laravel auth routes.

ejdelmonico left a reply on Laravel And Vue Error • 2 months ago

I would refresh the browser cache then.

ejdelmonico left a reply on Laravel And Vue Error • 2 months ago

Show your layout so we can make sure you are showing you JS and CSS files from mix output. If not using versioning, then use:

// in head
<link href="{{ asset('css/app.css') }}" rel="stylesheet">

// end of body
<script src="{{ asset('js/app.js') }}"></script>

ejdelmonico left a reply on Laravel And Vue Error • 2 months ago

Hmm, what are you using to run the site? Valet? Homestead?

ejdelmonico left a reply on Laravel And Vue Error • 2 months ago

Ok, it seems that Vue is maybe not compiled. Have you run npm install and then npm run dev?

ejdelmonico left a reply on Laravel And Vue Error • 2 months ago

Is that file the one you are trying to echo out message in?

ejdelmonico left a reply on Laravel And Vue Error • 2 months ago

Sometimes you have to close chrome dev tools and then open it again for chrome to detect the plugin.

Comment out your partials and includes because your vue code is fine.

ejdelmonico left a reply on Laravel And Vue Error • 2 months ago

So, I am supposed to guess what resource is not loading as the error message indicates? Come on now.

ejdelmonico left a reply on Laravel And Vue Error • 2 months ago

Which resource did the server fail to load?

ejdelmonico left a reply on Issues Deploying A Site • 2 months ago

Well, this is a trap that is well documented. You must delete the default site and create a new site. I usually create the site with a name that reflects your website like what-ever-your-site-is-called.com and then setup deployment all over again. You will have to enter the .env values once again because it is a new site and perform migrations etc. After all of that is done (you don't have to change the DNS again), then you can issue an SSL certificate. You can not use default site because the certificate authority cannot verify the site using the default.

ejdelmonico left a reply on Stripe Integration- Console Shows Not Defined Error • 2 months ago

Looks like the stripe secret is not being found because pk_test is part of the test api key.

ejdelmonico left a reply on Moving From SQLite To MySQL Causes Error 500 • 2 months ago

First off, Laravel is designed so that you do not need to change default values in the config directory. You should declare the correct values in the .env file. Laravel reads the .env file first and then caches the values for future reference. So, I would run all of the artisan commands to clear caches and also clear your browser cache.

ejdelmonico left a reply on Best Practice For Two Different Types Of Users? • 2 months ago

Jeffrey does something similar in this repository: https://github.com/JeffreyWay/council

Edit Your Profile

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