ejdelmonico

Owner at Del Monico Web Services LLC

Experience

268,715

234 Best Reply Awards

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

21st February, 2018

ejdelmonico left a reply on Laravel 5.6 And Passport *5.0 How To Logout In The Api? • 9 hours ago

Check your sessions in dev tools. I am thinking that the passport token is still there so when another request is made, still logged in.

ejdelmonico left a reply on How Can I Call View Blade Laravel In Vue Component? • 9 hours ago

I wouldn't use Blade in that situation since you already have a Vue component. Look over this post about pagination in Vue. It's very simple.

https://medium.com/introcept-hub/create-pagination-component-using-laravel-and-vue-js-e5709aac2724

ejdelmonico left a reply on Forge Support? • 18 hours ago

Have a try with this:

https://forge.besnappy.com/contact

ejdelmonico left a reply on Nginx Does Not Work With Laravel • 18 hours ago

If you are trying to run a folder as a subdomain then you need a new server block. This may help you.

https://www.digitalocean.com/community/questions/how-to-setup-subdomains-for-different-root-folders-with-nginx

ejdelmonico left a reply on Nginx Does Not Work With Laravel • 18 hours ago

Take the advice above. nginx works very well with Laravel. Your config file is a mess. Look over the basic example link above and this exerpt:

server {
    listen 443 ssl http2;
    listen [::]:443 ssl http2;
    server_name example.com;
    root /home/example.com;
    
    # HSTS
    add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;

    ssl_certificate /etc/nginx/ssl/example.com/255573/server.crt;
    ssl_certificate_key /etc/nginx/ssl/example.com/255573/server.key;

    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';
    ssl_prefer_server_ciphers on;
    ssl_dhparam /etc/nginx/dhparams.pem;

    add_header X-Frame-Options "SAMEORIGIN";
    add_header X-XSS-Protection "1; mode=block";
    add_header X-Content-Type-Options "nosniff";

    index index.html index.htm index.php;

    charset utf-8;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt  { access_log off; log_not_found off; }
    location ~* \.(?:manifest|appcache|html?|xml|json)$ { expires -1; }
    location ~* \.(?:css|js)$ { expires 1y; access_log off; add_header Cache-Control "public"; }
    location ~* \.(?:ttf|ttc|otf|eot|woff|woff2)$ { expires 1M; access_log off; add_header Cache-Control "public"; }
    location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ { expires 1M; access_log off; add_header Cache-Control "public"; }

    access_log off;
    error_log  /var/log/nginx/example.com-error.log error;

    error_page 404 /index.php;

    location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
    }

    location ~ /\.(?!well-known).* {
        deny all;
    }

19th February, 2018

ejdelmonico left a reply on 100% Off Coupon With Stripe Doesn't Work All That Great • 2 days ago

Probably not that difficult but then you have to go granular when updating the app code because you would need to modify the framework. It would be nice if they included a customizable statistical dashboard.

18th February, 2018

ejdelmonico left a reply on Laravel Valet Shows A Blank Screen • 3 days ago

Well, it could be a few different issues. First check you php version which sounds like it's a suitable version. Next, make sure nothing else is using port 8080. The, try and old project in the Code directory (park directory) to see if it works. If it works, then its your Laravel install which may be missing an .env or APP_KEY or something. If none of those help, try restarting Valet again and clear your browser cache, sessions and cookies.

ejdelmonico left a reply on 100% Off Coupon With Stripe Doesn't Work All That Great • 3 days ago

I use one (100% off coupon) for one of my customers. It has been working fine for over a year. The tracking data has never been correct on a cash basis. However, when considering non-cash accounting, the sale is recorded as such and you would manually have to defer the payment through the coupon as a marketing campaign or whatever you want.

ejdelmonico left a reply on Spark New Issues • 3 days ago

Did you update the Spark Installer to v2.0.0 for Spark v6.0?

17th February, 2018

ejdelmonico left a reply on Using MySQL Instead Of MariaDB • 4 days ago

You can install MySQL separately (without Homebrew) and stop MariaDB from brew services stop mariadb. The, you can start mysql from the settings panel when needed.

Also, there is a solution to the lack of a specific json column in MariaDB that you might not be aware of. https://mariadb.com/kb/en/library/json-data-type/

ejdelmonico left a reply on 100% CPU Usage On DO • 4 days ago

Sounds like you have some very common malicious probing going on which eats up your resources. Try adding the free tier of Cloudflare to your site and make sure you connect the the vm to Cloudflare with a free SSL cert. Cloudflare will allow you to serve the site no matter who is hitting it. These hackers constantly hit every server I have ever worked with. If you examine the log files closely with Papertrail, I would bet that most of the probes are for Wordpress directories and files especially since your domain previously served such files. Scaling up your server for that is probably not going to help but Cloudflare will.

ejdelmonico left a reply on Consuming Own API... Where To Start? • 4 days ago

It sounds like you want to separate the backend from the frontend and maintain a flexible environment. What I would use is Laravel as an API along with Passport for secure access. You can use middleware with Policies/Roles to limit access. You can use whatever you want on the frontend because it will be independent so Vue, React, etc.

16th February, 2018

ejdelmonico left a reply on My Public/js/app.css Contains Nothing After "npm Run Dev" (???) • 5 days ago

Did you npm install?

ejdelmonico left a reply on Where Can I Define Global Helper Functions? • 5 days ago

@tptompkins There are a few ways to accomplish what you are wanting to do. The simplest, but not the best, is to use global statement in app.js like window.myFunction = // Do something. A better way is to write a module and export the module functions or use a self-executing main function. For a small project, I would think that writing a simple module and importing it into app.js. Then, it should be available globally. However, for simplicity, you could write the module and only import into the main instance like main.js or Example.vue or whatever you are using it for. That way, app.js stays cleaner and easy to update.

ejdelmonico left a reply on HTTP 500 Error • 5 days ago

If it is the storage directory permissions causing the issue, then check to make sure the owner has 755 permissions on thestoragedirectory and if you already made the link topublic, then make sure 775 permissions are on the link as well. If this is really the issue, then you need to know the owner so you can modify what is necessary. In a basic Laravel install, most directories are 755 and all root level project files are 644. So, if it's a Forge server, the owner would beforgeand the group would beadm. Ubuntu servers use theadmgroup and owner unless changed most other servers usewww-data`. You would have to ssh into the server and inspect.

ejdelmonico left a reply on Using A React Component In Vue • 5 days ago

It is just javascript so I am sure you could get it to work out but the big question is why would you do something like that? You are adding enormous overhead to the webapp using two JS frameworks not even addressing the naming conflicts etc. But, if you are set on trying it, I would use the cdn versions of slate.

Have you checked out Vue-Quill-Editor? https://vuejsfeed.com/blog/intergrate-quill-editor-in-vue-js-2-projects

14th February, 2018

ejdelmonico left a reply on ResetPassword Link Incorrectly Formatted • 1 week ago

Well, I would expect the GET request to use the improper ? in the link instead of a slash. Did you confirm that a post request was sent for the route password.email? And, a get request was sent in the route password.request? You have the post request for password.email and the laravel standard auth uses a post request to password.email for the actual reset request. One of those would be the likely offender looking at the info your provided.

ejdelmonico left a reply on Weird PHP Testing Changes With Laravel 5.6.3 • 1 week ago

If you are trying to see courses on the /courses page the I would test first that you could see them and then check the number requested for pagination.

$course = factory(Course::class, 1)->create();
$this->get('/course');
$this->assertSee('$course->title');

13th February, 2018

ejdelmonico left a reply on Errors With Running Npm Commands And Laravel 5.6 • 1 week ago

If you have an babelrc file in your home directory, that is the problem. I have discovered that having a standard babelrc works great except when Mix is scanning your chain for things to merge with it's config. Now, if you have all of those plugins and add-ons installed, everything is just fine. If not, you are forever installing packages and chasing ghosts with the npm install. I nuked my babelrc in my home directory and never had another issue with Mix.

ejdelmonico left a reply on Php-fpm Nginx MySQL - Random Timeouts When Trying To Connect To DB • 1 week ago

Has this setup been running for a while on the same equipment? Seems strange that you wouldn't be able to connect. That line of code is checking the DB connection credentials. I haven't had a 4.2 app running in a few years. I did see a few mentions about running out of memory because of too many open DB connections which causes the MySQL server to refuse more until things settle down.

ejdelmonico left a reply on Lets Encrypt Staging Ssl , Always Fail To Install • 1 week ago

@moses Eventually, Let's Encrypt will support subdomains but it currently does not. I have heard of people making an A record for the subdomain instead of a CNAME and having it work. You could try that otherwise you will need a wildcard certificate to cover the subdomains.

9th February, 2018

ejdelmonico left a reply on Delete Warning • 1 week ago

You should use a promise so you can perform the delete submit after the swal is done.

swal({
  title: 'Are you sure?',
  text: "You won't be able to revert this!",
  type: 'warning',
  showCancelButton: true,
  confirmButtonColor: '#3085d6',
  cancelButtonColor: '#d33',
  confirmButtonText: 'Yes, delete it!',
  cancelButtonText: 'No, cancel!',
  confirmButtonClass: 'btn btn-success',
  cancelButtonClass: 'btn btn-danger',
  buttonsStyling: false,
  reverseButtons: true
}).then((result) => {
  if (result.value) {
    swal(
      'Deleted!',
      'Your file has been deleted.',
      'success'
    )
  } else if (
    // Read more about handling dismissals
    result.dismiss === swal.DismissReason.cancel
  ) {
    swal(
      'Cancelled',
      'Your imaginary file is safe :)',
      'error'
    )
  }
})

ejdelmonico left a reply on What Environment Does Tayloy Otwell Use? MAMP, Docker, Native Or What? • 1 week ago

@marknt15 Well, first of all, it really doesn't matter what you use. Just use whatever tool makes you comfortable and doesn't slow you down having to configure it for the project. As you gain more experience, the tools you use will be chosen most likely on efficiency and dependability. For instance, Valet makes it so easy to use that you forget it's even there. All you have to do is make a quick DB for the project and place the DB login info in the .env and boom! you are off and running. And, that goes for just about any project. Of course, many folks are migrating towards docker for dev work. All in all, use what works for you.

8th February, 2018

ejdelmonico left a reply on What Environement Does Tayloy Otwell Use? MAMP, Docker, Native Or What? • 1 week ago

I have not noticed him mention the particulars about what he uses other than Sublime (maybe VSCode now), mysql and Valet. That would be a good question to ask him though. I can pretty much guarantee that he doesn't use MAMP though.

6th February, 2018

ejdelmonico left a reply on Caching? Where To Start? • 2 weeks ago

If you have OPCACHE enabled and standard caching recommendations for web pass, you shouldn't need anything more. Obviously, loadtime is a whole different measurement. Those are small gains by using image caching and right-sized as well as lazy-loading. But, if you want to use Varnish, have a good look at this package by Spatie. It's great and easy to use

https://github.com/spatie/laravel-varnish

ejdelmonico left a reply on Merge Collection With For Each() • 2 weeks ago

I think you are mixing up objects with arrays. You should look at what I was trying to make an example of and try the correct way this time. You can't just drop in lines and expect ti to work. We just make suggestions based on a guess of what context you are using things. It's up to you to make appropriate adjustments to suit the context of your code. You can only use merge on an array like $values.

ejdelmonico left a reply on Merge Collection With For Each() • 2 weeks ago

Are you sure you are using collection objects? It seem like it is expecting an array key.

ejdelmonico left a reply on What To Do? • 2 weeks ago

@flashman If you are compiling multiple css files, your config does does show this. Are you importing those files into app.scss? Please show your app.scss file.

ejdelmonico left a reply on Merge Collection With For Each() • 2 weeks ago

You should try:

$merged_collection = new Collection();

foreach($array_of_collections as $key => $collection) {
    $merged_collection-> merge($collection);
}

ejdelmonico left a reply on Failed To Mount Component: Template Or Render Function Not Defined • 2 weeks ago

What is the rest of the error message?

5th February, 2018

ejdelmonico left a reply on How Should I Create An Alias Outside The Root Directory In Nginx? • 2 weeks ago

The user running a Cron or another job must have access to the file. This is most your issue. The ownership of nginx operations and root should not be involved. You can create a user without being a member of sudoer group to run the job.

4th February, 2018

ejdelmonico left a reply on My Valet Install Is Messed Up {HELP} • 2 weeks ago

I had something similar just recently. What I did was run:

valet stop
brew services stop nginx
brew services stop dnsmasq
composer remove laravel/valet
brew reinstall dnsmasq
brew reinstall nginx
composer global require valet
valet install

ejdelmonico left a reply on How I Can Pass Data From A View To Root Instance Of Vue • 2 weeks ago

What other ways are you retrieving client info? OAuth?

ejdelmonico left a reply on MongoDB Integration • 2 weeks ago

@KNietzsche GraphQL can be adapted to use with any DB. Currently, it is just common to see it with MongoDB. There are many online discussions and articles about using GraqphQL...it is the future and it is extremely easy to use. Just think of it as layer that provides you a means to never ever have to actually talk to your DB and it only returns the data you requested, nothing more and nothing less.

ejdelmonico left a reply on How I Can Pass Data From A View To Root Instance Of Vue • 2 weeks ago

Do you actually need the current users object or just that the user is logged in? If the later, I usually make a middleware to confirm whether or not the user is logged in.

3rd February, 2018

ejdelmonico left a reply on Bootstrap And A New Project • 2 weeks ago

Well, Laravel currently comes with Vue 2.5.7 and Bootstrap 3.3.7. I usually strip out the old Bootstrap and Vue...or leave in Vue and just strip out the old Bootstrap. However, you will have to tell webpack about Bootstrap 4 and you will need popper.js.

ejdelmonico left a reply on Bootstrap And A New Project • 2 weeks ago

Did you run php artisan preset none after installing the project and before adding Bootstrap 4, etc?

2nd February, 2018

ejdelmonico left a reply on Forge Server - App Decided .env Would Not Get Read.. • 2 weeks ago

@gorby I just found an old note that I made about your very problem although it's a bit late now. I was using php artisan config:cache and I had read about issues with fully flushing out the previous cache so I switched to php artisan config:clear after installing composer dependencies.

ejdelmonico left a reply on Taylor Otwell Cancelled My Account Without Asking Me • 2 weeks ago

IMO: Did you pay and have no balance due? Because if you weren't paying or difficult on the payment end of things consistently (I would warn you first though) then I would pull the plug as well. Or, if you violated the law in any way, I would pull the plug.

However, everything should be handled with considering the potential number of people a rash move could cause.

1st February, 2018

ejdelmonico left a reply on For Loop And Axios • 2 weeks ago

function(response, i) for the index. The you could use it in your block. Also, you may want to clean up your code and use a feature axios has called concurrency with axios.all(). You can look it over here https://github.com/axios/axios

ejdelmonico left a reply on Forge Server - App Decided .env Would Not Get Read.. • 2 weeks ago

Nope all 7 of my DO servers still have there .env files intact after the patch so I don't think it's you issue. How did you add your .env? Copy the file over or enter the key/value through Forge control panel?

29th January, 2018

ejdelmonico left a reply on NGINX Log Files Permission Issue • 3 weeks ago

@tptompkins Those are good questions, let me look around for areas that are affected by a change and the owner of the file should be able to access the log file. I use the forge user to access mine. Of course, forge is the owner. Somehow, you ended up with the default permissions for nginx.

As noted in the nginx.conf file, the user is forge so the logs should be available to the forge user so I think changing the user might work but I would make a snapshot before any changes.

Do not chnage the permissions on /etc/logrotate.d/ unless they are not root root.

ejdelmonico left a reply on NGINX Log Files Permission Issue • 3 weeks ago

@nmaptomyheartbeat You shouldn't have a problem with changing the the permissions because your SSH config should not allow root to log in unless you changed the standard Forge configuration. They would have to steal your ssl key and log in as forge and also have the root password to escalate privileges to root.

ejdelmonico left a reply on NGINX Log Files Permission Issue • 3 weeks ago

@tptompkins I checked several of my Forge servers and the only difference in permissions is /var/log/nginx is root adm which makes sense. As far as the default site, you never want to use that inForge unless you know you won't add another site or subdirectory and you won't need an ssl cert.

ejdelmonico left a reply on NGINX Log Files Permission Issue • 3 weeks ago

By any chance, have you performed system updates and did not keep the modified config when asked by apt? This could cause nginx or anything else to change permissions and ownership to the defaults. It seems like that is very likely what happened.

28th January, 2018

ejdelmonico left a reply on React Async Validation • 3 weeks ago

Yup, that is a tough one when you don't know what the backend is going to look like or what it actually spits out. Me, I would go with the json file for now and maybe that will give the backend people an idea about how you expect the output to look. The problem is simulating a server-side query. Me, I would look at writing a custom validator using the fetch api with async/await. Not knowing the context of the entire project and what the goals are, it's difficult to make recommendations other than broad ones. If its a long running project, then reducing technical debt is important and would definitely sway towards the fetch api. If you use a promise, that would work as well but would be ideal.

Anyway, what version of React are you using? Aren't you getting a warning from the react tools plugin about your ref? You are using an outdated style for ref.

ejdelmonico left a reply on React Async Validation • 3 weeks ago

So, you want to query the server to check to see if the package is not in the DB? What is your backend? Are you using Laravel, Node, SSR React or something else?

ejdelmonico left a reply on Problem With Pull Request From Jeffrey Way/council App • 3 weeks ago

Is the parent actually passing in the props? I did not play with the code as of yet.

Edit Your Profile
Update

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