ejdelmonico

Owner at Del Monico Web Services LLC

Experience

209,205

166 Best Reply Awards

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

23rd September, 2017

ejdelmonico left a reply on Laravel/PHPUnit Testing - TokenMismatchException • 4 hours ago

@bmlarson If your DB is getting wiped out, you must have the real DB setup to use for testing. Also, did you make sure you have the middleware correct? RedirectIfEmailNotConfirmed

ejdelmonico left a reply on Can Not Consume My Api On Live Server • 4 hours ago

Make sure you clear all caches on server and then try it out.

ejdelmonico left a reply on Coding Style - Do You Always Extract To Variables And Methods? • 13 hours ago

@thebigk I think you will receive answers for the whole spectrum of beliefs on this. What matters most is readability. So, if it reads better without the refactor, then leave it alone. I think the reason Jeffrey does it at times is because it is a simple line of code and will read just fine if you refactor out the variable. That is my opinion on your statement.

ejdelmonico left a reply on Changing Github Repo • 13 hours ago

@kerryjones It could be either of two things. First, the easy way, delete the ssh key on forge server, delet server from Envoyer and add again and save the key from Envoyer again to forge. I have had this work but only once in a while. The other is to nuke the site in Envoyer and recreate it with the new repo.

ejdelmonico left a reply on Laravel Mix Not Mix My Script • 13 hours ago

@120891 When posting code use single backtick for one-liners and

triple backticks before and after for multi-line

Tip: do not use already minified files when using scripts in Laravel mix. You never want to minify twice because it always causes issues.

Try my tip and see if other files are brought in.

22nd September, 2017

ejdelmonico left a reply on Vue And Passing Account_id With Axios • 1 day ago

@LYLEYBOY Use a token of some kind so that the actual account_id will not be passed. Kind of what Stripe does but you already have the knowledge of a verified user.

20th September, 2017

ejdelmonico left a reply on Laravel 5.5 - Is Debugbar Working After Login For Anyone? • 3 days ago

@jthorpe Did you make sure APP_DEBUG=true as in the notes?

ejdelmonico left a reply on Tried To Update Laravel 5.5.4 To 5.5.5, Got 5.5.9 • 3 days ago

Yea, the info is scattered about. Whenever a new release of Laravel comes out (over the last 3 years), there are a bunch of patch releases. The next time you look, it will probably be at 12!

As far as where to look, you have to linger in the repos to see what exactly changed. https://github.com/laravel/laravel I usually check the commit messages because the changelog only reflects a major patch. If it's a framework release then look at https://github.com/laravel/framework and Mix is at https://github.com/JeffreyWay/laravel-mix

ejdelmonico left a reply on Laravel 5.5 Errors Not Showing • 3 days ago

@cumekwe Did you make sure the package was installed? filp/whoops

If you upgraded from 5.4, make sure you followed the upgrade guide exactly. You can find it here: https://laravel.com/docs/5.5/upgrade#upgrade-5.5.0

ejdelmonico left a reply on Tried To Update Laravel 5.5.4 To 5.5.5, Got 5.5.9 • 3 days ago

Sure it is, when you run composer update, you get the latest version.

ejdelmonico left a reply on Upgrade From 5.4 To 5.5 • 3 days ago

@primebytes Please show us the error messages. We have no idea what the cause could be if you followed the upgrade guide to the letter unless we see them.

Upgrade guide: https://laravel.com/docs/5.5/upgrade#upgrade-5.5.0

ejdelmonico left a reply on Laravel 5.5 - Is Debugbar Working After Login For Anyone? • 3 days ago

@jthorpe Make sure you used the correct version of debug bar for Laravel 5.5. They started a new release. Check the attached image.

https://cl.ly/mcla

19th September, 2017

ejdelmonico left a reply on [Vue Warn]: Failed To Mount Component: Template Or Render Function Not Defined. • 4 days ago

Need to remove the require statement from global components in app.js for some reason. I did it like this:

import Flash from './components/Flash.vue';
Vue.component('flash', Flash);

and it works fine.

ejdelmonico left a reply on Vue Components Not Mounting After Deleting Node_modules And Reinstalling Packages • 4 days ago

Ok, a work around is to import the component first in app.js like this:

import Flash from './components/Flash.vue';
Vue.component('flash', Flash);

ejdelmonico left a reply on Vue Components Not Mounting After Deleting Node_modules And Reinstalling Packages • 4 days ago

I just tried a 5.4 sample project and I received the error as well. I am currently looking around to find a solution.

ejdelmonico left a reply on Vue Components Not Mounting After Deleting Node_modules And Reinstalling Packages • 4 days ago

Mix just upped the vue-compiler version to 2.4.4 so that is where you should look first. Vue should be 2.4.4.

ejdelmonico left a reply on [Vue Warn]: Failed To Mount Component: Template Or Render Function Not Defined. • 4 days ago

Yea, it is hard to solve but Mix just bumped the Vue compiler to 2.4.4 so that is where you need to check. Vue should be 2.4.4.

ejdelmonico left a reply on [Vue Warn]: Failed To Mount Component: Template Or Render Function Not Defined. • 4 days ago

ok, well I would nuke the node_modules directory and npm install. Sometimes, that works magic and is a lot quicker then staring at the screen in disgust. Give it a try.

ejdelmonico left a reply on [Vue Warn]: Failed To Mount Component: Template Or Render Function Not Defined. • 4 days ago

Did you re-build after the update? npm run dev

Just curious because we get involved in something and forget to do a simple step.

ejdelmonico left a reply on Laravel Installer Vs Composer Create-package • 4 days ago

@raulrola Personally, I use the installer on a Mac. Most folks that I know use composer on Windows machines. The reason that there is probably a difference is that the installer is only updated with a new version of Laravel unless there is a problem. I am guessing but I am sure that is where the difference is.

This is what the latest installer pulls down: wget https://github.com/laravel/laravel/archive/master.zip

You can find the repo here: https://github.com/laravel/installer

18th September, 2017

ejdelmonico left a reply on How To Include VUE2 Components In Laravel? • 5 days ago

You should not need to give the path in the require statements as long as you installed them and saved them as a dependency in package.json. Webpack will find them.

    // chartjs package
    require('chart.js');
    // vue-charts package
    require('hchs-vue-charts');
    Vue.use(VueCharts);

makes it globally available as long as you put before the Vue instance declaration. Just use something like this in a blade file

<!--line chart component-->
<chartjs-line></chartjs-line>

On a side note, this is a good package to use http://vue-chartjs.org/#/home

ejdelmonico left a reply on How To Include VUE2 Components In Laravel? • 5 days ago

@chrisbenjamin Just remember to call Vue.use() before declaring the Vue instance. It is the preferred way of letting Vue know of your packages.

When you use an es6 import statement, webpack will look for that import in your node_modules directory via package.json. If your import is not in node_modules (like a component), you need to give it the path to the file. Regardless, JS files do not need the .js in an import statement.

Toast is the export from the package's module.

When you write Vue.compoent(), you are registering the component with the Vue instance. It too has to be declared before the Vue instance.

When you import a module through es6 imports, you have the option to declare a variable name like Toast. You can call it whatever you want, it doesn't have to be called Toast.

$toast() is defined in the module at src/index.js and starts at line 10..

16th September, 2017

ejdelmonico left a reply on Laravel Mix Issue -failed Bootstrap • 1 week ago

@coustas First, don't give webpack already minified files. Just use the copy command if keeping them separate or use the unminified version to mix in. You can copy right from your node_modules directory if that is where the file lives. Also, only use js method once in a mix instance or run a second instance after the first to compile the second js...just make sure they output to different bundles.

On a side note, why would you be bringing in bootstrap in mix? It is already injected in app.js along with Vue.

ejdelmonico left a reply on 403 Forbidden On Only One Page • 1 week ago

@Wizix You need to have a constructor function in the controller to state privileges.

public function __construct()
{
    $this->middleware('auth');
}

You can add an exception if you need to: ['except' => 'index']

ejdelmonico left a reply on Atom IDE-PHP Doesn't Work • 1 week ago

If you up for it, VSCode is way better than Atom. I only used Atom for a week and had to get rid of it. It was always having issues. VSCode works without a hitch and way more powerful. Give it a try.

ejdelmonico left a reply on Laravel Blade & Vue.js - How Organize The Code ? • 1 week ago

@nicolasca It depends...what are you building and SPA or standard site? If its an SPA then use Laravel for the backend api which talks to the DB and Vue for the frontend. I would separate my code into a more modular JS frontend pattern.

You will have to pass the data through props from Vue to Laravel. If a regular site, I would place my Vue components in the standard locations as well as my blade views in their standard location.

The real question is SPA or not though? It makes all the difference in my opinion.

ejdelmonico left a reply on SPA With Laravel 5.5 And Vuejs 2.4 • 1 week ago

You should put the @ in front of his user name if you want him to notice your message. It's pretty easy to do what you are asking. Use Laravel as your layer for the api and which talks to the DB through eloquent. Use Vue, vue-router and axios for the front end. You will have to pass data by code but it is not hard. Plenty of info through Google search. This is may be what you need to get started.

https://www.youtube.com/watch?v=WhfAqDy-cgo&list=PLkZU2rKh1mT88ejAxhv_EjkgYThrR2-nA

15th September, 2017

ejdelmonico left a reply on Loading Vue Into 5.5 • 1 week ago

@Lordgreymaul Did you run yarn or install and build with yarn/npm run dev?

14th September, 2017

ejdelmonico left a reply on Laravel App.js Boilerplate • 1 week ago

@codenex It easy. Doing it this way makes the Vue instance available to your app right away. Where ever you write out your <div id="app"></div>, that is where your Vue components will render. So, I usually just place it as a top level div in my main layout. Now, I can use any Vue component that is registered in app.js in any part of the project. You can also place Vue.use() statements right before the app declaration and be able to use the plugin or whatever.

I guess the whole idea is that you will be making it globally available in your app because you would most likely make a master layout that has abode which looks something like:

<div class="container">
    <div id="app">
        <Example></Example>
    </div>
</div>

I hope that helps some.

ejdelmonico left a reply on Loading Vue Into 5.5 • 1 week ago

Assuming you have installed your package.json packages (Vue), you should leave the main Vue instance clean by restoring it back to just defining the instance. If you want to play around with everything, just use the Example.Vue in /assets/js/components or make a new one. If you decide to make a new vue component, store it in that directory and register it in app.js below Example.vue. Then, in welcome.blade.php, just add

<div id="app">
    <Example></Example>
</div>

Now, adjust the template to whatever you want. You can add your data in the script section. Hope that helps.

12th September, 2017

ejdelmonico left a reply on Cannot Deploy Coaster CMS On Forge Server • 1 week ago

@beerbuddha NO, I haven't really compiled any list. I can say Statamic is extremely fast and requires no DB. PyroCMS is pretty good and Is very close to basic Laravel. The approach to building the site is just different. AsgardCMS is great. It's very easy to configure and theme. They all have a particular process for deployment...just google it or check the docs. Most of them state something on using Forge servers. I know for sure that you do not want to run composer for a Statamic deploy.

ejdelmonico left a reply on Auth Controller Missing Or Path Issue 5.2 • 1 week ago

Is showRegistrationForm calling the view? Since register.blade.php seems to be there, you can also check and make sure you have either a nested directory for admin or a route prefix admin.

ejdelmonico left a reply on Cannot Deploy Coaster CMS On Forge Server • 1 week ago

Did you SSH in and run artisan to see if the command exists in the artisan commands listing? Maybe it wasn't published. How exactly did you install the project? I have never used Coaster CMS but have successfully installed Statamic, PyroCMS and AsgardCMS on Forge servers. Each has their on issues and usually involves not running composer install when cloned from the repo.

11th September, 2017

ejdelmonico left a reply on How Can We Take Benefit To Learn Laravel & VueJs? • 1 week ago

Jeffrey"s video series on this site are excellent and practical. I believe the Vue series might be free. Learn from the videos and build a few random things to get practice and then use a free lancer service like Fivr to get some work.

ejdelmonico left a reply on How To Make Your Laravel Project Faster • 1 week ago

@jeimz173 Well, if Laravel was so slow, why are so many dev shops using it? I have many projects running on Laravel and Laravel Spark. The framework is plenty fast enough and can even run on minimal resources. Obviously, If your code makes too many requests to the DB or too many background jobs, your app will slow down. With PHP 7.1, I find laravel pretty fast when production ready and I am sure others here will say the same.

This from the serversforhackers.com site will help. https://serversforhackers.com/laravel-perf

10th September, 2017

ejdelmonico left a reply on Vue Event Does Not Fire • 1 week ago

@lj90 Is updateInput() a method on the Vue instance? You didn't post the relevant code. If it is, then try substituting an alert for the method to see if the click event is firing. If it is, then look to the way in which you have coded the Vue instance.

ejdelmonico left a reply on Having SSH Problems? Yes. Yes, I Am. • 1 week ago

@sheldonscott The order should not matter. I have many sites running on Forge and Envoyer and I sometimes create things as needed. Forge will store your public key and have it ready for you when the new server is provisioned. Otherwise, just add it before you try to SSH into the provisioned server.

When you add a Github or other repo to the site, Forge gets a key from the provider with your info (automated). Security updates for the important stuff is done automatically with a Forge server. If you want to bring everything up to date before deploying to production, Just sudo apt update && sudo apt upgrade -y. Make sure you do not replace any config files when an upgrade prompts you...just select to keep the original one and everything will work fine. Composer will check for updates on its own as well.

Any other questions, just ask.

ejdelmonico left a reply on Having SSH Problems? Yes. Yes, I Am. • 1 week ago

@sheldonscott Did you look at my previous post? First, if you plan on using SSL, you will need to trash the default site and create a new one. It's easy so no worries. If not, then the default site is fine.

You need to upload your public key to Forge so you can SSH into the server. After, you do that and from the terminal, ssh [email protected] (whatever your IP address is).forge` is the user.

ejdelmonico left a reply on Having SSH Problems? Yes. Yes, I Am. • 1 week ago

A Forge DO server has access with password turned off and you need to use the SSH key you uploaded from your machine to SSH into the box.

https://cl.ly/mPTu

2nd September, 2017

ejdelmonico left a reply on Where Is The Register View Loaded? • 3 weeks ago

You can override any of those methods if you have to. Just put in the controller and override the method you need.

Have a look at this: https://laracasts.com/discuss/channels/laravel/laravel-54-add-another-field-to-auth-register-page

ejdelmonico left a reply on Date Validation Issues • 3 weeks ago

Standard input for a date is yyyy-mm-dd so I would do the initial validation in the input field using the pattern attribute.

For example:

<input type="text" pattern="(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))" required />

Have a look here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date

ejdelmonico left a reply on Ajax POST Request Response • 3 weeks ago

what is in your data.response for the error? Maybe do error.message

ejdelmonico left a reply on File_get_contents() Error • 3 weeks ago

You should post the relevant code for help.

ejdelmonico left a reply on Laravel Valet | Uninstalled Valet, Installed Valet 2.0 Unable To Determine Linked PHP. • 3 weeks ago

Run brew doctor and make sure you are actually using the brew installed php (php71). Sometimes you may have to restart your brew services as well.

31st August, 2017

ejdelmonico left a reply on I Have A Technical Laravel Test • 3 weeks ago

@leorent The problem with those kind of interviews is that the people on the other are sometimes egoist and think everyone else does it wrong or does not know as much as them. The coding test such as the one you were given is an example of that kind of attitude. These people are more interested in seeing if anyone can do it rather judge you by the things that make a good team member and a coder who is productive. Anyhow, obviously, I am not a big believer in tests like that. I have worked on many projects with people who do well on those tests but can seem to play nice with others and contribute to the bottom line. Ok, rant over. I hope it works out for you.

30th August, 2017

ejdelmonico left a reply on Laravel Collective Not Compartible With 5.5? • 3 weeks ago

It usually lags behind version releases and YES, you need to match the Collective version with the Laravel version.

However, I believe most of us haven't used it since Laravel 4. Just use regular old HTML5 forms. The only real benefit from Collective (in my opinion) was the ease of using the form model binding. But, that is easy to Google and find how to do it. In essence, if you want to use it you will have to wait for them to release a 5.5 compatable version.

ejdelmonico left a reply on Package Discovery My Own Package • 3 weeks ago

Did you include the escaped slashes?

"extra": {
        "laravel": {
            "providers": [
                "Laracasts\\Flash\\FlashServiceProvider"
            ],
            "aliases": {
                "Flash": "Laracasts\\Flash\\Flash"
            }
        }
    }

I have only done a few packages but I have never had to add the package to composer PSR-4. I do that in the package itself. Maybe show your code so we can understand the context better.

ejdelmonico left a reply on Best Practices - App Key Between Dev And Production? • 3 weeks ago

@jthorpe I would have to say it is a matter of choice. Personally, I keep them the same because I do not ever commit my .env to a repository. I add the .env after I have deployed to production but before the site is live. Why complicate things when it isn't necessary. I'm sure some others will chime in as well.

ejdelmonico left a reply on State Management In Laravel Mix • 3 weeks ago

@joshuagautham If you are requiring simple state then I would choose React as the frontend because React can handle simple state without any additional packages. If a complex state is necessary then you would need to use something like Redux. Both have a steep learning curve if not familiar but the docs are very good and there is a package for just about anything.

If you want the same thing with a flatter learning curve and not many packages, then choose Vue2. There are many good arguments that Vue works best with Laravel and I would have to agree. Jeffery has free course videos on Vue so watch them. The docs are great as well.

29th August, 2017

ejdelmonico left a reply on Using Vue With Algolia • 3 weeks ago

Edit Your Profile
Update

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