تماشای این درس نیاز به اشتراک حرفه‌ای دارد.

Installing Artisan Package0:00

Now, if you work with Laravel much, you'll be running lots of artisan commands. You can switch to the terminal and trigger it there, I do it that way all the time. Or if you want to do it directly from your editor, here's what to do. From Package Control, install a new package, and I don't know the name of it, let's look. Maybe this one, Laravel 5 Artisan Commands. Okay, so let's see how that works. Let's see the default settings, and it looks like we can just set the php path as well as the artisan path. All right, let's try this out. Why don't we say artisan, and notice we have all of these new commands now.

Running Artisan in Editor0:29

All right, let's try this out. Why don't we say artisan, and notice we have all of these new commands now. So I could say artisan make:controller, or I could just look for make:controller or mc, and it'll probably come up. All right, so we'll say, we'll call it my-new-controller. That's done. I'll hit escape to toggle that. Or you can also remove that console panel entirely from displaying. But anyways, now we can see it here. Or maybe we want to make a provider, my-custom-service-provider, and there we go.

Reviewing Benefits and Options0:54

But anyways, now we can see it here. Or maybe we want to make a provider, my-custom-service-provider, and there we go. We can see it right here. So yeah, useful. If you prefer the command line, no problem there. But you actually might find it's a little bit quicker to do it directly in your editor.

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