ejdelmonico

ejdelmonico

Member Since 4 Years Ago

Las Vegas, NV

Owner at Del Monico Web Services LLC

Experience Points 331,765
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 1488
Lessons
Completed
Best Reply Awards 283
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.

25 May
1 day ago

ejdelmonico left a reply on Help With Booking System Timezone Offsets

Maybe you could refine your explanation for more context. If the user books a slot at 1200 ET, then you can convert that to UTC (1600) right away. Then, if someone viewed that slot in Los Angeles, the 1600 UTC would convert to 2100 UTC. In your case, I would use timestamps for the reference because then the calendar dates will convert correctly.

ejdelmonico left a reply on Spark Folder Not Tracked By Git?

The vendor/laravel/spark directory is a link to spark directory. Check inside that directory for the .gitignore. It should be there unless you already removed it.

ejdelmonico left a reply on Vue App Error In Laravel

Did you place a catchall route in web.php so that requests are sent to vue-router?

23 May
3 days ago

ejdelmonico left a reply on Password Reset Form Shows ERROR 404

By default, the reset token is only valid for 1 hour If I remember correctly. So, try a valid token.

ejdelmonico left a reply on Password Reset Form Shows ERROR 404

Well, as Snapey indicated, if you are using Valet or Homestead, you should be serving your site with public as the root for the webserver. Then change your APP_URL to http://localhost.

ejdelmonico left a reply on Password Reset Form Shows ERROR 404

The url is not correct. That is your problem. it should be http://localhost/password/reset/{token}

ejdelmonico left a reply on Password Reset Form Shows ERROR 404

Meaning did you override any of the standard auth views or controllers?

ejdelmonico left a reply on Password Reset Form Shows ERROR 404

I am assuming the dev domain is correct since you received a 404. Did you modify or override any of the included auth?

ejdelmonico left a reply on Password Reset Form Shows ERROR 404

Have you copied the url from the button and tried it in a new browser tab?

22 May
4 days ago

ejdelmonico left a reply on Site Broken Under Firefox As Of This Morning

Currently, Firefox 67 has no issues using MacOS.

11 May
2 weeks ago

ejdelmonico left a reply on Loading Vue

You probably want to just add the js asset to your layout template so it is available throughout the site. If you are trying to add a script from a blade partial, then:

// in the blade partial
@push('scripts')
    <script src="/example.js"></script>
@endpush

// in the head of the blade page layout
@stack('scripts')

ejdelmonico left a reply on How To Fix 500 And 429 Errors With Axios ?

You may be running into a common issue of component reuse in Vue. Use $nextTick per the docs.

ejdelmonico left a reply on Nova Value Metrics - Format Not Working

You should show the entire metric for context. Try using count instead of result.

ejdelmonico left a reply on New Component Is Not Displaying

@progr Do you have the closing </template> tag in the component? You are not showing the full TaskForm component.

ejdelmonico left a reply on Where To Store Your JWT Token

@Cor I usually store tokens as an encrypted cookie. The js-cookie package makes that very easy. The main thing to watch out for is that you want to avoid storing a sensitive token in localStorage.

ejdelmonico left a reply on A Facade Root Has Not Been Set

Did you uncomment the BroadcastServiceProvider in config/app.php?

ejdelmonico left a reply on Laravel Middleware Only()

You can specify only or except in the middleware constructor such as, $this->middleware('auth', ['only' => ['something']]);

ejdelmonico left a reply on Hello Friends Larvel Jwt Login Error

Did you issue the secret on the production server? php artisan jwt:secret

ejdelmonico left a reply on Alternative For Valet .test Domain

Personally, I have not faced your specific issue but I found a =n article that addresses' the issue. Hopefully, it will help you: article

ejdelmonico left a reply on Packages Not Being Defined

Give it a try with require() and see if the message goes away.

const PerfectScrollbar = require('perfect-scrollbar')
const Sticky = require('sticky-js')

ejdelmonico left a reply on Adding A DEV TLD Site

Did Let's Encrypt actually issue the certificate? It will fail if the site is unreachable. If the cert was issued, then the site should be available so check with another browser to see if the same result. Then, I would clear my DNS cache on your dev machine.

08 May
2 weeks ago

ejdelmonico left a reply on Nuxtjs And Lumen API

I usually, create a fresh Laravel app and then create my Nuxt or Vue app in a project root directory called frontend. I use a catchall web route and a SPAController to redirect to the frontend. For example, in routes/web.php,

Route::get('/{any?}', '[email protected]')->where('any', '^(?!nova|admin|horizon).*$');

This catchall will direct all routing requests to the frontend except for Nova, or an admin panel or horizon.

07 May
2 weeks ago

ejdelmonico left a reply on Nuxtjs And Lumen API

Lumen has lost its most of its luster. Full Laravel is almost as good these days. There are several ways to structure your app. Use Nuxt in the js directory with a catchall backend routing that directs to Nuxt. Or, you can even store Nuxt app in a top-level directory and make the necessary adjustments (this is my preference). Else, you can separate the two. There are a few courses on Udemy that you can grab for $10 that combine Laravel api with Nuxt. Every week they have course sales so it shouldn't be long before you see the $10 price on the course.

ejdelmonico left a reply on Laravel Vuejs [Vue Warn]: Unknown Custom Element: <router-link>

You need to include the router in your Vue instance in order to use router-link from vue-router.

ejdelmonico left a reply on [small Bug] Broken Link

To submit a bug report to Jeffrey, scroll to the page bottom and click on the support link.

05 Apr
1 month 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
1 month 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
1 month 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
2 months 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
2 months 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
2 months 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
2 months 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
2 months 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
2 months 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
2 months 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
3 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)