در حال بارگذاری ...

Adding Error Detection0:00

Now, at the moment, we don't have any error detection. So if I remove a ;, for example, we have no feedback whatsoever. So we definitely can't have that. So let's begin improving this. I'm going to install a package called Sublime Linter, and then you can have a look at the documentation if you want. But then on top of that, I will pull in Sublime Linter, and then let's look for a PHP implementation. So you can see you have a couple choices here. You can do one just using php from the command line, or we could do PHP CS. So why don't we do that one? Now, we're about ready to try this out. But yeah, real quick, if I switch over to the documentation, yeah, notice that we have to pull in PHP CS manually ourselves. It's not going to be done by us automatically. Now, you'll see right here, we can pull it in through Composer, and that's great because I already have that on my machine, and very likely you do as well.

Installing PHP CS0:43

be done by us automatically. Now, you'll see right here, we can pull it in through Composer, and that's great because I already have that on my machine, and very likely you do as well. So let's pull that in globally. And of course, just make sure if you install something globally with Composer and your bash profile, sorry, I don't have a theme yet for my command line. This is a new computer. But yeah, make sure that Composer vendor directory is part of your root so that it can be discovered. And yeah, now we have that pulled in. So we should be able to do php cs, or you may have to open a new tab. But yeah, you can see that. So I think we're all set to go here. So what I'm going to do, if you try it out and you don't see any feedback, why don't we give it a restart. And now open up bar, save it. There we go. And now we are getting all of that feedback, because we're missing all these things. So you can, of course, hover your cursor

دوست دارید گاهی خبرهای Laracasts را ایمیل کنیم؟