Laravel provides a very powerfull a command-line interface named Artisan.
This interface provides the developer a lot of useful commands to speed up the development process.
This article on http://ourcodeworld.com explain very well how to create your custom command