Laravel is an open-source framework whose utility is to develop web applications and services using one of the most popular languages on the internet: PHP. Laravel's philosophy is quite simple: develop PHP code elegantly and focus on simplicity, thus avoiding spaghetti code.
When we say "spaghetti code" we mean something that, in its construction, resembles a plate of pasta. It is a derogatory way of naming complex flow structure control programming code as if it were a bunch of strings, dating back to the 1960s.
One of the intentions of Laravel and its developers is to take advantage of the best of other frameworks, as well as the features of the latest versions of the PHP programming language.
We are going to walk through some of the commands that facilitate development in Laravel, which run in Artisan, the command line interface of this framework.
To list all Artisan commands: php artisan list.
Help craft php: a command that will help you get help on a name of some command you need.
Php artisan help makes: auth
Make:auth is the name of the command we are looking for information about.
Php artisan-version - A command that will list the version of Laravel you are using.
Php craftsman below: works to put the Laravel application in maintenance.
Php craftsman: with this command you start the application again.
Env envio craft: tells you the environment in which the application runs
craft vision php: clear
A command to delete all compiled view files.
craft route php:list
List all registered routes.
This guide to basic commands will be quite useful when you are developing an application or website using Laravel, or you can even have them fresh in your memory if you are already an expert in this framework.
Among the benefits that Laravel offers to develop applications in PHP, the following stand out:
At Rootstack, our expert developers have used this technology to solve the different technical problems that our clients present at an international level. If you want to be part of a team that is making its mark on the digital landscape with everyday applications and websites, just click here and take the first step to a bright future.
We recommend you on video