ejdelmonico

ejdelmonico

Owner at Del Monico Web Services LLC

Las Vegas, NV

Hire Me

Member Since 3 Years Ago

Experience Points 320,885
Experience
Level
Lessons Completed 1406
Lessons
Completed
Best Reply Awards 281
Best Answer
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.

13 Dec
2 days 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
3 days 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 days 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
1 week 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
1 week 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
2 weeks 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
3 weeks 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.

ejdelmonico left a reply on How To Prevent 422 Console Error With Laravel Validation

Try doing a dd($request->all() to make sure you are posting the required data to the server. This will reduce the reasons why the request is unprocessable. Are you sending the token as well?

20 Nov
3 weeks ago

ejdelmonico left a reply on Holiday

You would have to check for Taylor's Twitter postings or Medium articles. This site belongs to Jeffrey Way and he usually has a 1-day deal for a huge discount for Laracasts.

ejdelmonico left a reply on How Long Does It Take To Learn JavaScript To A Reasonable Level?

Just take a crash course from Wes Bos. I think his JS course is free. It's called Javascript in 30 days or something like that. It will be enough. Then, take the free Vue course on Laracasts. Vuetify is just pre-built components that expose many props for you to customize them.

ejdelmonico left a reply on Nova Returns A 404 Page After Creating Any Kind Of Resource

Make sure you run composer dump-autoload and php artisan clear-compiled and php artisan route:clear` locally. See if that clears your issues.

ejdelmonico left a reply on Nova Panel Width Resizing

I would think that you can override any of the nova supplied views with your own. It probably involves copying a Vue component and editing the tailwindcss and elements. If it were me, I would investigate that first and then look at some of the packages to how they modify the view in their tool packages.

ejdelmonico left a reply on Nova Panel Width Resizing

ok, I suppose I misunderstood your question. Maybe you should read about custom tools. You can build one with any css or js to do what you want.

ejdelmonico left a reply on Nova Global Search: Customize Link

If you leave Nova as installed (without Scout), the search will return whatever is in the DB column for the link. So, the easiest method is to make sure the path is stored the way you want it. Otherwise, you would have to use a package or Scout. I am not aware of any other way as of yet. Of course, things are changing fast on the Nova front.

Packages can be discovered here.

ejdelmonico left a reply on Computed Default Value For Text Field

You should be able to get the value of any column and not show it on a form (ie: hidden) using hideFromIndex() or hideFromDetail(). Personally, I don't understand why you would want the token in Nova. You should take care of that in the controller or model and not the Nova model. If you want to view the token, and the token has a db column, you can display it using a text field.

ejdelmonico left a reply on Nova Panel Width Resizing

In order to resize those cards, try going to NovaServiceProvider and in the cards(), do something like:

(new NewUsers)->width('1/2')

You can do all of your resizing for cards there.

ejdelmonico left a reply on Nova Returns A 404 Page After Creating Any Kind Of Resource

Since you have already wasted a bunch of time, start at the basics. You can either start a new project and copy over the relevant code or continue wasting precious time. If you want to try some more than start with focusing on the routes in the project. In NovaServiceProvider, make sure you haven't accidentally removed the Nova routes. They should be:

protected function routes()
    {
        Nova::routes()
            ->withAuthenticationRoutes()
            ->withPasswordResetRoutes()
            ->register();
    }

In addition, download a current zip file of Nova and replace the nova directory in the project just in case something is corrupted in there. After that, clear everything with artisan, especially, php artisan view:clear. Then, you know that it is not the source code causing the problem.

19 Nov
3 weeks ago

ejdelmonico left a reply on Configs For Nova Custom Tools

You definitely use .env values in your Nova tool. In fact, you will find a lot of the quality packages already available use them. In addition, you can expose methods on your tools.php class so that users can choose config options. You can do that with the withMeta() method of the base class. It accepts an array of key/value pairs which is ideal for config options. You can structure the service provider and tool class like normal Laravel packages. If you are just wanting an env value to use in a Vue component from the tool, you can place a MIX_ in front of the .env key to make it available from webpack.

18 Nov
3 weeks ago

ejdelmonico left a reply on Vuex With Inputs / Forms

If they are generic type filters like changing a number or string into currency, then make a component-based Vue filter or use a computed property for each. If you think you might use it again, make the same filter global in App.vue or app.js. The, use the global filter when writing the getter. In all, there are many ways to do it and to say that one way is best your use case would be irresponsible. I always choose the easier and simple way unless I know that it will cause technical debt in the future. If so, then I would take it to the next level.

ejdelmonico left a reply on VUE JS - Shorthand If / Else

v-if and v-else are added to elements so the answer is no. You could probably develop one but I don't think it's necessary considering all Vue has to offer. However, you can always use a standard ternary expression in its place. After all, Vue is just javascript.

ejdelmonico left a reply on Ajax

If you are referring to a replacement, I would recommend using the fetch api because support has greatly improved and it future proofs your api requests. Also, there are very good polyfills available for older browsers.

ejdelmonico left a reply on Dynamic Field Type For Laravel Nova Rows

That is correct. Just commit it as normal code. I usually commit the node modules of those custom packages so that my deployments are more reliable. To be more clear, the package has it's own composer.json and package.json.

ejdelmonico left a reply on It Could Be More Simple To Change The Nova Logo Image

@mithrandir is correct. It does say that in the license agreement. However, I really doubt that it would be enforced. The copyright statement at the bottom would most likely be enforced unless permission to remove it was obtained.

ejdelmonico left a reply on CSRF Problem With Mobile Only!

Are you positive the token is being added to the post request? Out of the box, Laravel attached the token from the meta element in your html layout head to window.axios. If you imported axios in a vue component, then make sure you attach the token to the request. Just for testing, don't use the import of axios and use window.axios in its place to see if you get the same error.

ejdelmonico left a reply on Dynamic Field Type For Laravel Nova Rows

Yes, that is the way you create a custom field or tool in Nova. However, you don't have to make the package public. php artisan nova:field creator/package-name will set up the entire skeleton for the custom field in the nova-components directory.

https://laracasts.com/series/laravel-nova-mastery/episodes/14

16 Nov
4 weeks ago

ejdelmonico left a reply on What Is .then For?

It is the preferred way to avoid callback hell...meaning one callback calls another and so on. You return a promise and use as many .then() methods as necessary to accomplish your tasks. Personally, I have never used more than two. After, you can use a .catch() to make sure you handle any errors that are returned from the promise. finally() is also available. As referenced above, async/await is a newer remedy but most packages you will use work better with .then().

You can find more info here

ejdelmonico left a reply on Components Extend From Base Component

You can use a mixin for the base component and use it in the dynamic components. So, the YoutubeComponent will start out with the mixin and you can add to it. There are several ways you can go to pass in which dynamic component to call. You can use props or an event or state, etc.

13 Nov
1 month ago

ejdelmonico left a reply on Video Speed

It should be @JeffreyWay

ejdelmonico left a reply on Video Speed

No problem. Most everyone is helpful here. Use the @ in from of his tag. You can search for his profile to get the tag.

ejdelmonico left a reply on Dynamic Field Type For Laravel Nova Rows

You will probably need to generate a custom field for that. Take a look here. Also, The new series on Nova touches on customization.

ejdelmonico left a reply on Vuex Persisted State Not Persisted

I am not sure yet what the issue is but you should not have createPersistedState twice. It takes an array so you can just place PopUpForm in the first instance and both should work. Otherwise, make sure your state is read from the cookie after it is changed.

ejdelmonico left a reply on Video Speed

You should probably put in a feature request for that. Also, you may want to edit your request and add Jeffrey's tag so that he sees it eventually.

ejdelmonico left a reply on Nova Support

I would say if you think you might need more help or if you have more than one dev working on the project, then upgrade the license. Otherwise, just search and ask here.

As far as your issue, I think you would need to handle the calculation in the model and then somehow link it to the Nova model for display as a metric.

12 Nov
1 month ago

ejdelmonico left a reply on Forge Horizon Deployment Is Not Reliable

Did you set up the Forge daemons so that it restarts? Also, in your deploy script:

if [ -f artisan ]
then
    php artisan migrate --force
    php artisan view:clear
    php artisan cache:clear
    php artisan config:clear
    php artisan route:clear
    php artisan horizon:terminate
fi

Place that towards the end.

ejdelmonico left a reply on Nova Support

Did you buy the more expensive license? That one comes with support. I am not sure if someone will answer if you bought the cheaper one. I haven't had to use Nova support on my current project as of yet.

23 Oct
1 month ago

ejdelmonico left a reply on Custom Resource Update Logic

You add any custom logic to your regular Laravel model while using Nova so modify it as you desire. As far as processing the json, you can write a small transformer to handle that and attach it to the model.

ejdelmonico left a reply on Can't Install Nova In Production (Heroku)

did you use an auth.json file in the project root? I am not sure if Heroku will pick up on that but it should. That file allows you to give credentials for a composer repo.

ejdelmonico left a reply on Resources Only Returning 1 Item

That's a tough one. How do you have auth setup? Like other Otwell stuff (Spark), it's heavily opinionated and so if you stray too far from the Laravel framework provided service providers, you end with issues. For some reason, I keep thinking you aren't showing all of the users because of the Nova guard for admins.

22 Oct
1 month ago

ejdelmonico left a reply on Resources Only Returning 1 Item

It must be some kind of package collision. On a side note, have you considered using Laravel Passport instead of jwt-auth? I've always had problems using that package and haven't looked back after switching to Passport. I also use Spatie's version of laravel cors which has a nicer layer over Barry's package. When you run php artisan package:discover? Are all the packages discovered that you do not have additions for in the config/app.php?

ejdelmonico left a reply on Resources Only Returning 1 Item

What version of Laravel are you using? Yes, if you have APP_ENV=local in your .env file then you are using a local environment.