ejdelmonico

ejdelmonico

Owner at Del Monico Web Services LLC

Member Since 4 Years Ago

Las Vegas, NV

Experience Points
348,155
Total
Experience

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
1603
Lessons
Completed
Best Reply Awards
288
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

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

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

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

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    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 Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

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

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

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

Level 50
348,155 XP
Dec
11
2 months ago
Activity icon

Replied to Input Set Focus Not Working !

Try calling this.$nextTick("input:text:visible:first").focus()) in your method. Also, a ref would probably serve you well here. this.$refs.input.focus()

Activity icon

Replied to Vue Router Link With A Reload Component Option

Why not go the easy route and extract the elements you are using in both pages into a component and include the component in an Article and News view. That should solve your issues. Otherwise, you will probably need to destroy the component after using it which is not very efficient.

Activity icon

Replied to 419 Page Expired On POST Submit After AJAX GET

419 is a Laravel code (not part of the official status codes) and is usually related to CSRF token missing from the submission. Add it to the header along with X-Requested-With header.

Activity icon

Replied to Laravel Horizon: Jobs Are Failing

Are you using Forge? Do you terminate the horizon process with each deployment? Did you set up a daemon for horizon?

Oct
10
4 months ago
Activity icon

Replied to Laravel 6 : Permanent 419 Error With CSRF Token Mismatch Error

Make sure you clear the browser caches. Browser may be caching the old token.

Activity icon

Replied to How To Send An Nova Authenticated HTTP Request Using Axios ?

Are you including the api route as a string in get()?

Nova.request().get('/nova-vendor/stripe-inspector/endpoint').then(response => {
    // ...
})
Activity icon

Replied to Homestead Update Confusion

When you upgrade the box, you should destroy the old vm instance by vagrant destroy --force, download the new box and run vagrant up.

Activity icon

Replied to Pass Down Selected Checkboxes From Child To Parent

Well, $emit is using the event bus in Vue. As far as improvements, if the project frontend will continue to grow, you should consider Vuex. It's not at all hard to use and there are plugins for persisted state, cookies, etc.

Activity icon

Replied to Pass Down Selected Checkboxes From Child To Parent

In Vue, you can simply use Vuex to manage all state in the frontend. However, it sounds like you keeping it simple so to pass data from the parent to the child use props. To notify the parent of a change in the child, use an event bus.

Activity icon

Replied to Have Bootstrap Modal Open After Ajax Loads Data

Use a promise and open the modal in a then() statement so that the data fetch is good beforehand.

Aug
30
5 months ago
Activity icon

Replied to VueX Store Usage

You can store the initial request in the session and every time you need to filter, you can check if the session has posts...if not, fetch them. Just do JS filtering instead of refetching every time a new filter is selected. Also, you could store the initial request for all posts in the Vuex store and follow the same process.

Aug
28
5 months ago
Activity icon

Replied to Can't Access A Variable Relations In View Laravel 5.8

Your pivot table name should be changed to project_role by Laravel convention. The rule is that the singular table names are to be used in alphabetical order.

Aug
27
5 months ago
Activity icon

Replied to Auth() Helper Is Not Working On Middleware

You can access the currently signed-in user's id with $id = Auth::id();

Activity icon

Replied to Using Laravel Passport With Vue.js

You need to refer to the docs for vue-router. https://router.vuejs.org/guide/advanced/meta.html

If you add meta: { requiresAuth: true } to a route, vue-router will store that meta in $route object. You will need a beforeEach to check for routes that require auth. Here is an example to be placed in your router file.

router.beforeEach((to, from, next) => {
  if (to.matched.some(record => record.meta.requiresAuth)) {
    // this route requires auth, check if logged in
    // if not, redirect to login page.
    if (!auth.loggedIn()) {
      next({
        path: '/login',
        query: { redirect: to.fullPath }
      })
    } else {
      next()
    }
  } else {
    next() // make sure to always call next()!
  }
})
Aug
25
5 months ago
Activity icon

Replied to Using Laravel Passport With Vue.js

You can configure axios to pass the token with every request using window.axios.defaults.headers.common['Authorization'] or you can pass it individually with each request. You can store the token locally in an encrypted cookie or in the non-secure localStorage.

Activity icon

Replied to Use Sweet Alert Inside VUEX

Maybe you should re-phrase the question because Vuex is only used to manage application state. You can not use SweetAlert inside Vuex. What you can do is store a boolean for whether it should be open or closed. You can create a Vue wrapper component for SweetAlert that passes in a boolean prop to open/close it and also a prop containing the message to display. The, you can create a Vuex action, mutation and getter to call inside your other component or views.

Activity icon

Replied to Store() Paths

You can create the public-facing URL with the asset('uploads/your_file') helper. Or, you can use Storage::url()

Aug
24
5 months ago
Activity icon

Replied to How To Do When The Vue JS Component Is Very Large ?

You can break the methods out into a separate file (using: export const someMethod) and then import them in the component.import { someMethod } from './someComponent' Also, you cab refactor some functionality into a smaller component to be used in the parent component. If there is common functionality with other components, consider using a mixin for those items.

Aug
22
6 months ago
Activity icon

Replied to Install Nova 2.1 Via Composer

Hmm, that is odd. Try using the login info for the auth.json. Both of my current projects upgraded without an issue to the latest version.

Activity icon

Replied to Install Nova 2.1 Via Composer

You will need "laravel/nova": "^2.0" in the require section of composer.json. Also, in the"repositories"` section:

"repositories": [
   {
     "type": "composer",
     "url": "https://nova.laravel.com"
   }
]

When you perform the request the first time, it should offer to create an auth.json file for you with your access credentials. If not, you can easily create it yourself.

{
  "http-basic": {
    "nova.laravel.com": {
      "username": "your email for nova",
      "password": "your nova password"
    }
  }
}
Aug
21
6 months ago
Activity icon

Replied to Passport Authentication

The code you have posted looks good to me. I use the same basic code.

Aug
19
6 months ago
Activity icon

Replied to Passport Personal Access Token Refresh

Did you set the token times in the boot method of AuthServiceProvider?

In the docs, there are examples of setting the refresh token and personal access token expiration times. You can see them at the following link.

https://laravel.com/docs/5.8/passport#configuration