To close off our section about Artisan, we will show you a few extra commands that don't really fit in the previous categories. These commands can still be helpful, though, and you should keep them in mind when developing your application.
php artisan inspire - Display an inspiring quote by a famous person;
php artisan auth:clear-resets - Flush expired password reset tokens. This is a helpful general-use command that won't come up often, but it's good that it's present;
php artisan env:encrypt - Encrypt an environment file. Previously, we talked about encrypting the .env file, and this command and the one below are what you have to use to do so;
php artisan env:decrypt - Decrypt an environment file, in case you no longer need it to be encrypted;
php artisan lang:publish - Publish all language files available for customization. This command will show you all the languages you have available for your application;
php artisan model:show - Show information about an Eloquent model. Earlier in the tutorial, we talked about Eloquent, and this command will show you details about a specific model it created;
php artisan route:list - List all registered routes. Another general-use command that will show you all the routes your application is currently working with. We will elaborate on routes later on in this tutorial.
These commands may not appear often in your development process, but it is good to know they are there. Of course, the list is not extensive; we thought these are the more important ones. You can always use the php artisan list command to find a complete list of Artisan commands.
To provide you with the best experience, our website uses cookies. By continuing to browse the site you are agreeing to our
Cookie Policy.
Your Privacy and Cookies Settings
Our sites use tools, such as cookies, to understand how you use our services and to improve both
your experience and our advertising relevance. Here, you can opt-out of such tracking:
Social
Social media features, such as the ‘Facebook Like/Share button’, Widgets or interactive mini-programs run on our
site to incorporate social and customer feedback feeds. Some of them use cookies for behavioral analytics
and advertising and/or market research.
Support
FastComet Live Chat support requires cookies for behavioral analytics needed to address pre-sales/support inquiries.
Disabling this cookie will limit you from receiving assistance from the Customer Service team via FastComet's LiveChat services.
Statistics and Advertising
We use digital tools, such as Google Analytics, to track web traffic and the effectiveness of our digital
advertising outreach efforts. This helps us identify more relevant ads to consumers and to improve
the efficiency of our marketing campaigns.
Essential
Cookies required for essential services and functionality such as login forms, shopping cart integration,
and access control. Without them, our website cannot function properly and we cannot provide any service.
Opt-Out is not available.
By continuing to browse the site you are agreeing to our
and Cookie Policy.