ejdelmonico

ejdelmonico

Member Since 3 Years Ago

Las Vegas, NV

Owner at Del Monico Web Services LLC

Experience Points 324,315
Experience Level 50

0 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 1424
Lessons
Completed
Best Reply Awards 282
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

05 Apr
2 weeks ago

ejdelmonico left a reply on Where To Store Client Credentials When Using Laravel Passport On API?

@ Personally, I use a secure cookie. There is an easy to use a package called, js-cookie that works well for front-end storage. Just do not use localStorage for the token because anyone can see it.

04 Apr
3 weeks ago

ejdelmonico left a reply on Laravel Spatie/medialibrary AddToCollection Not Working

The images should be stored under storage/app/public. Using sequence numbers is how the library keeps track of the image versions. The library associates the images with the collection you gave it. You can also use a custom path if necessary.

ejdelmonico left a reply on Flitering In VUE.JS With Select Buttons

Are you aware that collections have a filter method that creates a new collection through a callback. You would have to set up a form element or use toggles to trigger specific filtering. You can read about it here

01 Apr
3 weeks ago

ejdelmonico left a reply on How Should I Use Hugo + Lumen / Laravel?

If you want to make your site with Hugo, you should use Go for the backend. Unless you are referencing another framework named Hugo. Also, I would look hard at using Laravel as an api (not Lumen) and Gridsome for the frontend. You can host them on Netlify which can serve the static site along with handling your forms and cms.

24 Mar
1 month ago

ejdelmonico left a reply on Issues With Github When Deploying With Laravel Forge

Perform the .gitignore edit locally and commit the work locally. The run git rm -r --cached to remove the old files that are now ignored. Then, push to the remote repo. Forge should replace the files when it pulls the new version as long as you have Quick Deploy turned on. If not turned on, then just press the Deploy Now button in Forge.

ejdelmonico left a reply on Issues With Github When Deploying With Laravel Forge

Yes, you need to gitignore public/js, public/css and public/storage if using it. Then, remove those files from your git repo by committting, git rm -r --cached and push.

23 Mar
1 month ago

ejdelmonico left a reply on How To Manage Persistence In VueJS

Personally, I would use vuex with vuex-persist, 'js-cookieandvuex-router-sync`. For me, that combination gives me everything I need for a snappy, persistent state. I can not offer an opinion on your current setup but increasing the memory in your server will probably cut down on latency with DB queries.

ejdelmonico left a reply on Vue Router Conflict With Admin Panel

You are almost there. In your where you can let the route to Nova fall to laravel routing by excluding it with where('vue_capture', '^(?!nova|admin|horizon).*$'). Give that a try to see if it works for you.

ejdelmonico left a reply on Laravel 5.7 Papertrail

You can use this package if you are not provisioning a server with Forge. If using Forge, just select the install from the panel and supply your access url.

ejdelmonico left a reply on Error In App.js Module Not Found: Error: Can't Resolve 'vue'

If you left the window.Vue = require('vue') in app.js and before declaring the Vue instance in app.js, it should be available. Also, make sure you have vue in your package.json and that you ran npm install. Otherwise, post some relevant code.

09 Mar
1 month ago

ejdelmonico left a reply on Question About Git Workflow

Sounds like a good plan if you are working alone or with just a few coders. Personally, when working alone or with another, I use the master for production and a single source of truth. I use a develop branch for dev work. If I want to make large changes to the code base to try something out or make a large feature, I will branch off of develop. When finished with the feature, I merge to develop. Then if the feature is working fine and makes it to production-ready status, I will merge develop to master. Basically, it's whatever works best for you. Everyone has there own way of using git. If you join a project, they will have established a workflow of there own for you to use.

ejdelmonico left a reply on Status Code For Response

Probably just because they use catchall responses, or lazy coders, or not in the budget If using a catchall response, it probably returns a 200 because communication with the server was successful even though the credentials didn't match. That would be my guess.

ejdelmonico left a reply on How Secure Is Laravel Passport

Yes, you can use js-cookie to do that easily in your front end. The package works nicely with Vue, Vuex and even Vuex Persist. The later makes it possible to persist your vuex state when a user reloads.

ejdelmonico left a reply on Why Use Storage/app/public Not Just /public Folder?

@gee I believe the design intention is to have all stored in the storage directory so that you can decide which files will be private and which will be public. A visibility property value determines whether it is public or not and by linking to the public directory, you have an easy way to access the files from the web.

08 Mar
1 month ago

ejdelmonico left a reply on Vue App With Laravel

Think about it. What fits your use case? If the backend will be accessed by more than one of your frontend apps, then use separate frontend and backend apps. If you do not think that other apps will be accessing the api, then combine them for a unified codebase. It really comes down to the old it depends phrase. The beauty of Laravel is you can use it in almost any combination of structure.

ejdelmonico left a reply on Why Use Storage/app/public Not Just /public Folder?

You can create another storage drive and be able to use it like storage/app/public. In config/filesystems.php

'media' => [
    'driver' => 'local',
    'root' => public_path('media'),
    'url' => env('APP_URL').'/media',
    'visibility' => 'public'
]

Now your media will be stored on public/media.

ejdelmonico left a reply on How Secure Is Laravel Passport

When using JWT tokens, you will want to store them in an encrypted cookie which means the cookie can only be set over your encrypted backend connection. Use of local or session storage is not going to be secure. And, as stated by lostdreamer_nl, you can make the token expire in a shorter period. Also, using an encrypted cookie along with CSRF tokens makes it a secure way to prevent most attacks.

07 Mar
1 month ago

ejdelmonico left a reply on Downloading Images With Spatie Media Library

Based on you stating that you wanted to download all media based on a specific model. It looks ok. Is assets the name of the media collection? Personally, I would have injected the model instead of making a DB request. Then, you can establish the model you want before calling the download and the model will be available.

ejdelmonico left a reply on Downloading Images With Spatie Media Library

Make sure you import MediaStream::class from the Media Library package and use it to return an on-the-fly zip file of items. Did you create your own controller for downloading? If so, I create a download method such as the example in the docs.

05 Mar
1 month ago

ejdelmonico left a reply on How To Add Existing VUE Project To Laravel ?

Well, you can approach it in a few different ways. The easiest is to place your Vue frontend in the laravel project root directory. Then, you use a SPA controller to catch the routes and redirect to vue-router routes. Use this route in your laravel web.php: Route::get('/{any}', '[email protected]')->where('any', '.*');

28 Feb
1 month ago

ejdelmonico left a reply on Why Did Not Working Laravel Middleware CORS With Vue JS

You should also have the CORS middleware in $middlewareGroups and it looks like you are using Laravel as an api so you would include it in the api section.

16 Feb
2 months ago

ejdelmonico left a reply on Extending Vue SFC, Methods From Child Component Not Working

Personally, the only time I have ever used extends is for say...building buttons or inputs. I have a baseButton or baseInput component which I extend to a button or input component. Everything gets merged into the new component. For other common functionality, I use Mixins. In other words, not a parent-child relationship but a basic and premium type of relationship.

ejdelmonico left a reply on How To Purify Laravel User Input ?

I think you may be out of luck. I don't think that package or stevebauman/purify only takes care of HTML related markup. So, I would just create a helper function that converts the curly braces before running the string through the purifier.

ejdelmonico left a reply on How To Bind Form Data

Well, generally, I use a computed method to grab data from the store and deliver it in the created method for the component. If you want it dynamic, then you make a computed method. On a side note, why do you need to store an array? Do the values change often? I don't really see the need for using the store except to store dynamic or user-selected data that will persist.

ejdelmonico left a reply on Why Did Not Working Laravel Middleware CORS With Vue JS

Are you sure you registered the middleware as required? You have a choice of global ($middleware), route group ($middlewareGroups) or route ($routeMiddleware)

14 Feb
2 months ago

ejdelmonico left a reply on Valet Error Log

@ringwoodinternet That post was from 2 years ago. Maybe you should look closer before posting.

26 Jan
2 months ago

ejdelmonico left a reply on Vue/ Laravel Authentication

You can also use Laravel Passport and just make your own Vue components for auth. Make routes in the routes/api.php file. Need to use a catchall route in routes/web.php so that all routes are deferred to your SPA. I don't have a guide for reference but I do this very often without any trouble. You are essentially just replacing the Laravel auth routes with your own and use the backend auth through the api routes. Make sure to catch your Laravel errors so you can handle them on the frontend.

05 Jan
3 months ago

ejdelmonico left a reply on Forge Can't Access To The Git Repository Of Organization

Did you try re-authenticating Github? Also, try deleting the connected repo and adding it with the proper credentials.

02 Jan
3 months ago

ejdelmonico left a reply on Nova Metrics Simple Count Doesn't Work

Do you have an associated eloquent model for the Nova resource? If not, you won't get the data. In other words, you create a Nova resource and associate it with a model such as App\Post with App\Nova\Post.

26 Dec
3 months ago

ejdelmonico left a reply on Connecting To Database From Local Machine

For security reasons, your DB server needs whitelisting and Forge will allow a basic connection. However, you really should lock it down further on the server. The DB server should be set up so that only specific IP address' and ports can access it. That is probably the cause of your issue. You should still be able to ssh into the DB server with the installed ssh key. Password access should be blocked by default with Forge.

ejdelmonico left a reply on Laravel Forge's Configuration Of NGINX + SSL Causes Safari Timeout.

I highly doubt it is your nginx config after the let's encrypt install. I never have an issue with the config changes implemented by Forge. Are you sure the site is not being monitored because of SSL in Iran? It could also be a DNS issue with your version of Safari. My guess is if it works with a VPN, then the government intranet is causing the timeout.

ejdelmonico left a reply on In Vue.js, Does It Make A Difference If I Call A Function With Parentheses?

If you call the function with parens, it will execute at that time. So, in the created hook, you are correct in using parens so that the fetch() method is executed instantly.

ejdelmonico left a reply on Yarn.lock Is Causing Npm Run Dev To Fail

yarn.lock comes in the laravel package by default. I usually remove it right after laravel new someproject finishes and before running npm install. In a CI environment, I believe that the service looks for .lock files and depending on the service looks to run yarn or npm first.

13 Dec
4 months ago

ejdelmonico left a reply on How To Get The Reason Error In Console

I am sure you aware of Vue dev tools plugin for most browsers which gives you pretty good error messaging. If you are trying to catch an error in JS,

try {
  // code...
} catch (error) {
  console.log(error)
}

ejdelmonico left a reply on Laravel Forge + Redis

Forge installs Redis by default. From the Forge landing page https://cl.ly/e18a06cfb6e1

ejdelmonico left a reply on Do I Need Server Side Rendering?

All of the major search bots can follow JS in the page so SEO will most likely be fine. If you want the fastest, then use Nuxt for the4 frontend.

ejdelmonico left a reply on Create Input Hidden When The Check Box Is Checked

You are going to need to show us how you are adding the hidden inputs. It is difficult to help without the full context of your issue. If using JS, just do a check if it exists before performing the checkbox action.

12 Dec
4 months ago

ejdelmonico left a reply on Data Type For All Numbers. Ex: 2, 3.3, -2.890, 01, Etc

@jpeterson579 I would cast them first as suggested above. You can then compare them as required.

11 Dec
4 months ago

ejdelmonico left a reply on Nova Trix Field Image Resize

So, give specifics on your resizing problem and show some code. We can not guess what is going on.

ejdelmonico left a reply on Data Type For All Numbers. Ex: 2, 3.3, -2.890, 01, Etc

Have you thought about just using a string and then convert them in code? Otherwise, you might want to search for a plugin because the standard install of MySQL or MariaDB doesn't give you a way to include all of the variances you require to the best of my knowledge. INT is probably the closest.

ejdelmonico left a reply on Vue Components Not Rendering

First, you do not need to attach Vue to the window object. Just do an es6 import as you have done with other packages in your app.js. Also, unless you are referencing the Vue instance often, you do not need to assign app to the instance. You can remove the const app = from app.js. In app.blade.php, remove the script tag with your second Vue instance because you most likely do not need 2 instances. Additionally, you have assigned an id of app in the home and app blade templates. This will confuse Vue.

04 Dec
4 months ago

ejdelmonico left a reply on Vue Components Does Not Work Like In The Course Video. Outdated?

You most likely need to change the name in the component. I believe you should use kebab-case for the global component name. In your case test-something as the first parameter.

ejdelmonico left a reply on Passing Vue.http Post Data

You can remove vue-resource and use axios. Do not use vue-axios as it really does nothing for you. After adding axios package, you can add:

// main.js
import axios from 'axios';
 
Vue.prototype.$http = axios;
Vue.prototype.axios = axios;

Now, you can use this.$http.post() globally in your project.

03 Dec
4 months ago

ejdelmonico left a reply on How To Install Vuex

Inside the @vue/cli project root, run vue add vuex to add Vuex to the cli project.

ejdelmonico left a reply on 'vue-cli-service' Is Not Recognized As An Internal Or External Command, Operable Program Or Batch File.

Check your project structure and make sure you are in the directory that houses the CLI frontend.

ejdelmonico left a reply on @click() Passing Value By Using Laravel Variable

You should be able to convert it to json and use it as a prop in the component.

@click="toggle('{!! json_encode($something) !!}')"

See if that works for you. There are other ways to do it as well.

28 Nov
4 months ago

ejdelmonico left a reply on Axios .then() Syntax

I think you are referring to a refactor that makes the code less readable. The refresh() method takes in the destructured response (data) that Axios returns in the promise. Normally, you would have response.data injected into the refresh(). That is where the confusion lies. Jeffrey knows that Axios returns the response in the promise and lets the compiler implicitly take in the response object which is then destructured to grab the data object.

23 Nov
5 months ago

ejdelmonico left a reply on Extending User Model

You can also use Laravel roles and policies along with the appropriate middleware to do exactly what you need. It is easy to do using those laravel features.