As you may know, we recently introduced a fresh new look for Artisan. But, we're not quite done with our flurry of console improvements.
Let us introduce you to
model:show. This command displays a thorough overview of any Eloquent model in your application, including its available attributes and relationships. It's the fastest way to get a high-level overview of your application's models in all of their glory.
As you can see,
model:show combines the information from your database with information from the Eloquent model itself to show you the model's full story.
You can even output the same information in JSON, so that services can ingest and use this information:
php artisan model:show User --json
At Laravel, we're committed to providing you with the most robust and developer-friendly PHP experience in the world. So, we hope you enjoy this new Artisan command!