Add Useful Info to the Laravel About Command

Published on : July 27,2022
Add Useful Info to the Laravel About Command

The Laravel about command released in Laravel 9.21 provides an excellent overview of important configurations for your application. Out of the box, it lists environment details, cache status, and configured drivers:

Another neat feature of the new about command is the ability for packages to add helpful information too. For example, we've covered Filament components here on Laravel News; after the release of Laravel 9.21, Ryan Chandler opened a pull request to add useful plugin details to Filament.

I think we'll see a lot of package authors add helpful details to the about command. Hopefully, the end-user doesn't get overwhelmed with too much info, or perhaps package developers make the inclusion of data in the about command configurable.

With that intro out of the way, how would you add custom data to the about command?

You can do so in a service provider, using the AboutCommand::add() method within the service provider's boot() method.

In the following example, let's say I wanted my package or application to output specific XDebug configuration values:

use Illuminate\Foundation\Console\AboutCommand;
 
// ...
 
public function boot()
{
    AboutCommand::add('XDebug Settings', [
        'Client Port' => fn() => ini_get('xdebug.client_port'),
        'Client Host' => fn() => ini_get('xdebug.client_host'),
        'Start With Request' => fn() => ini_get('xdebug.start_with_request'),
        'Max Nesting Level' => fn() => ini_get('xdebug.max_nesting_level'),
        'Mode' => fn() => ini_get('xdebug.mode'),
        'Output Dir' => fn() => ini_get('xdebug.output_dir'),
        'Log' => fn() => !empty(ini_get('xdebug.log')) ? ini_get('xdebug.log') : 'No Value',
    ]);
}

The above might look like the following locally, depending on your XDebug configuration:

 

Lazy Loading

One thing to note when creating custom about commands is that you should lazy load the output by wrapping the settings in an fn() => arrow function. For example:

  1. 'Client Port' => ini_get('xdebug.client_port'), 
  2. 'Client Port' => fn() => ini_get('xdebug.client_port'),  

I am excited to see what helpful information package authors start adding to this command!

Categories : Laravel PHP

Tags : PHP Laravel

Praful Sangani
Praful Sangani
I'm a passionate full-stack developer with expertise in PHP, Laravel, Angular, React Js, Vue, Node, Javascript, JQuery, Codeigniter, and Bootstrap. I enjoy sharing my knowledge by writing tutorials and providing tips to others in the industry. I prioritize consistency and hard work, and I always aim to improve my skills to keep up with the latest advancements. As the owner of Open Code Solution, I'm committed to providing high-quality services to help clients achieve their business goals.


166 Comments

tricor uk order tricor 160mg without prescription cheap fenofibrate 200mg


order generic cialis 10mg 50mg viagra buy generic sildenafil 100mg


order generic acarbose 50mg buy micronase without prescription griseofulvin order online


minoxidil medication buy tadalafil 10mg without prescription best ed pills non prescription


buy aspirin no prescription hydroquinone where to buy cost imiquimod


dipyridamole 25mg over the counter buy lopid without a prescription pravachol drug


florinef order buy dulcolax 5 mg sale buy generic imodium over the counter


purchase prasugrel sale detrol sale tolterodine pills


buy monograph pills oral colospa 135 mg buy pletal online


buy ferrous sulfate 100 mg for sale order betapace 40 mg for sale order sotalol sale


where to buy betahistine without a prescription haloperidol 10 mg us order probalan without prescription


xalatan cheap buy latanoprost no prescription oral exelon 3mg


prilosec canada buy singulair 5mg pills metoprolol 50mg without prescription


buy premarin pills for sale cheap sildenafil for sale order sildenafil 100mg without prescription


telmisartan 20mg generic purchase molnunat online order molnunat sale


cenforce 50mg oral cenforce without prescription purchase chloroquine without prescription


order cialis 10mg for sale oral cialis 20mg viagra 50mg over the counter


cefdinir pills purchase omnicef for sale generic prevacid


buy modafinil 200mg generic order promethazine online prednisone 20mg without prescription


order isotretinoin sale buy generic amoxicillin for sale azithromycin canada


brand atorvastatin 20mg oral atorvastatin 10mg cost norvasc


purchase azipro buy azithromycin pill neurontin 100mg price


buy pantoprazole generic phenazopyridine 200 mg drug pyridium over the counter


best online casino games best poker online real money lasix generic


real money spins online sugarhouse casino online albuterol canada


order amantadine without prescription purchase tenormin online dapsone 100mg brand


roulette online crazy poker games ivermectin coronavirus


real casino slots legitimate online slots for money generic synthroid 100mcg


medrol pills canada adalat 10mg uk how to get triamcinolone without a prescription


order serophene online buy azathioprine 50mg generic azathioprine online order


buy coversyl pill buy coversyl tablets allegra buy online


buy vardenafil online cheap vardenafil pill buy tizanidine 2mg generic


dilantin 100mg oral oral oxybutynin 2.5mg ditropan online buy


loratadine us buy altace paypal order dapoxetine 90mg online


lioresal order where to buy ketorolac without a prescription buy ketorolac medication


baclofen 10mg cost buy cheap generic toradol ketorolac pill


buy generic amaryl buy etoricoxib generic arcoxia 120mg oral


alendronate buy online buy macrodantin 100 mg pills nitrofurantoin uk


oral inderal brand ibuprofen 600mg buy plavix generic


order nortriptyline 25 mg for sale buy nortriptyline tablets panadol sale


purchase xenical pills buy orlistat no prescription diltiazem price


buy cheap coumadin buy paxil online cheap buy metoclopramide 20mg pill


buy generic azelastine 10 ml buy irbesartan 300mg generic avapro 150mg pills


purchase pepcid online cheap buy famotidine 20mg pill buy prograf 1mg online


order nexium online cheap buy generic topiramate over the counter order topiramate pills


zyloprim 300mg sale buy allopurinol generic rosuvastatin pills


sumatriptan uk where to buy levaquin without a prescription buy dutasteride generic


cost buspin cordarone cheap buy generic amiodarone


ranitidine drug order celecoxib 200mg generic buy cheap celecoxib


motilium tablet domperidone oral buy tetracycline pill


flomax 0.2mg canada order flomax 0.4mg without prescription order simvastatin 10mg pills


write essay for money write research papers buy a custom essay


aldactone 25mg oral buy aldactone 100mg buy proscar 1mg pill


buy aurogra 50mg for sale buy sildenafil generic buy estrace 2mg pills


diflucan 200mg generic generic ampicillin buy cipro sale


purchase lamotrigine generic order vermox 100mg sale buy mebendazole 100mg


buy flagyl 200mg generic bactrim 960mg over the counter order cephalexin 125mg online


buy cheap generic tretinoin order tretinoin gel where to buy avana without a prescription


cleocin where to buy buy cleocin 150mg sildenafil 100mg price


buy tadalafil 20mg online indocin drug indomethacin 50mg usa


where can i buy tamoxifen buy rhinocort for sale budesonide price


cefuroxime 500mg pills purchase bimatoprost without prescription methocarbamol ca


lamisil buy online casino real money slots games free


cost desyrel 100mg purchase desyrel generic order clindamycin for sale


academic writers online essay scholarships 2014 for college students cefixime 200mg tablet


order aspirin 75mg online cheap aspirin 75 mg price hollywood casino online


help writing papers i need help with my essay casino near me


trimox 500mg brand buy amoxicillin 250mg order biaxin 250mg pill


clDJdoaCpsRJmVCnUMajJzoDLtivJ


rocaltrol 0.25 mg sale buy generic tricor 200mg buy tricor 200mg online


clonidine 0.1mg usa buy spiriva pills for sale buy generic spiriva 9mcg


acne medication names pills acne oral medication without dermatologist buy generic oxcarbazepine online


minocycline 50mg cheap order hytrin oral requip


uroxatral over the counter allergy med comparison chart prescribed medication for heartburn


cost femara 2.5 mg cheap albenza order abilify 20mg generic


prescription sleep medication online buy weight loss medications online natural weight loss pills


provera for sale online provera 10mg price hydrochlorothiazide 25mg brand


tXwSpjxJEyflMpYOkPsqPscANL


chewing tobacco equivalent to cigarettes best drug to stop smoking how to buy painkillers online


buy periactin 4 mg for sale fluvoxamine for sale order generic ketoconazole 200 mg


ordering valtrex overnight delivery asthma medication cost chart new injectable diabetes drugs


cymbalta order cymbalta 20mg without prescription buy provigil 100mg


fungus clear by vitality health anti fungal tablets for skin which bp medicine is safest


purchase promethazine online buy cheap generic phenergan ivermectin pills for humans


stomach and duodenum inflammation will gastritis ever go away buy uti medication online antibiotic


oral deltasone 5mg order accutane 40mg pills buy generic amoxicillin 1000mg


best birth control delivery service morning after pill free delivery best supplement for semen volume


generic zithromax 250mg omnacortil 10mg cost buy gabapentin online


can a multivitamin cause heartburn heartburn medication brands best anti flatulence supplnt


cheap ursodiol 150mg order zyrtec without prescription zyrtec 5mg without prescription


Rodrigo Koch


strattera oral sertraline 100mg price buy sertraline for sale


furosemide 100mg brand doxycycline usa purchase ventolin generic


Jayleen Barton


lexapro cheap lexapro 10mg ca naltrexone order


augmentin 1000mg for sale buy augmentin 375mg generic buy clomid for sale


ipratropium generic order combivent 100 mcg purchase linezolid online cheap


buy vardenafil 20mg online order tizanidine 2mg without prescription hydroxychloroquine uk


starlix tablet capoten 120mg for sale order generic atacand 16mg


cenforce us buy glycomet 1000mg buy metformin 1000mg online cheap


buy carbamazepine without prescription lincocin 500mg ca generic lincomycin


order atorvastatin 10mg generic buy atorvastatin 10mg pill order zestril 5mg


order cefadroxil 250mg for sale how to get combivir without a prescription buy combivir without prescription


order generic omeprazole 10mg purchase atenolol oral tenormin 50mg


omeprazole 20mg canada tenormin online order buy tenormin 100mg sale


dostinex generic dapoxetine generic cheap dapoxetine 90mg


medrol brand name methylprednisolone 8mg pills clarinex order online


buy misoprostol generic misoprostol online order brand diltiazem


purchase nootropil online cheap buy piracetam pills for sale anafranil where to buy


order zovirax 800mg generic buy crestor 10mg pills rosuvastatin over the counter


itraconazole 100mg oral progesterone 200mg drug oral tinidazole 500mg


purchase ezetimibe zetia buy online buy generic sumycin over the counter


brand zyprexa 10mg order bystolic 20mg online cheap diovan 160mg brand


order flexeril sale buy ketorolac cheap ketorolac usa


Caiden Calhoun


order colchicine sale purchase clopidogrel without prescription methotrexate cheap


acne oral medication without dermatologist buy prednisolone 20mg generic adult acne medication prescription


doctor prescribed allergy medication fml-forte oral allergy pills on sale


infant stomach cramp prescription medication order glucophage generic



Winston here from Iowa. I'm always watching to see what newer sites are going up and I just wanted to see if you would like an extra hand with getting some targeted traffic, create videos/images/adcopy, remove negative listings, the list goes on. I'll even shoulder 90% of the costs, dedicating my time and tools that I've created myself and bought over the years. I've been doing this for over 22 years, helped thousands of people and have loved every minute of it. There's virtually no cost on my end to do any of this for you except for my time starting at 99 a month. I don't mean to impose; I was just curious if I could lend a hand. Brief history, I've been working from home for a couple decades now and I love helping others. I'm married, have three girls and if I can provide for them by helping you and giving back by using the tools and knowledge I've built and learned over the years, I can't think of a better win-win. It amazes me that no one else is helping others quite like I do and I'd love to show you how I can help out. So, if you need any extra help in any way, please let me know either way as I value your time and don't want to pester you. PS – If I didn’t mention something you might need help with just ask, I only mentioned a handful of things to keep this brief :-) Happy New Year, Winston Cell - 1-319-435-1790‬ My Site (w/Live Chat) - https://cutt.ly/9wEWIZbQ


buy prednisone 20mg order prednisone 5mg pills


fast acting heartburn medication buy generic irbesartan online


pills to clear acne permethrin for sale online acne medication names pills


natural remedies for acid reflux in adults cheap glimepiride 4mg


purchase isotretinoin online cheap isotretinoin 20mg over the counter accutane sale


После недоразумения с подругой решил принести извинения с помощью яркого букета. "Цветов.ру" оказался моим надежным союзником – быстро, красиво, и главное, с душой. Цветы стали настоящим мостом к миру гармонии и понимания. Советую! Вот ссылка https://coredrillchina.ru/tambov/ - букеты


super strong sleeping pills order melatonin 3mg sale


buy amoxil 500mg online cheap amoxil 1000mg oral buy amoxil 1000mg online cheap


Forrest Dawson


order zithromax 250mg for sale buy azithromycin 250mg generic cheap zithromax 250mg


neurontin 800mg canada neurontin 800mg sale


azipro brand order generic azithromycin 250mg order generic azipro 500mg


order lasix 40mg generic order furosemide online


omnacortil pill cost omnacortil 5mg cost prednisolone


amoxil 500mg pill buy amoxicillin 1000mg buy amoxicillin 250mg sale


buy acticlate pills monodox oral


River Villarreal


buy ventolin pills buy generic ventolin online albuterol sale


buy augmentin 625mg online cheap buy clavulanate sale


levothyroxine generic buy synthroid without prescription levoxyl us


buy levitra 20mg for sale vardenafil medication


Donovan Lawrence


clomiphene for sale order clomiphene for sale clomiphene canada


Переход на здоровое питание подтолкнул меня к покупке ручной соковыжималки. Я выбрал компанию 'Все соки', и это был лучший выбор. Их продукция высокого качества и надёжна. https://blender-bs5.ru/collection/ruchnye-shnekovye-sokovyzhimalki - Ручная соковыжималка купить - лучшее решение для здоровья и благополучия.


semaglutide 14 mg price buy semaglutide 14mg sale semaglutide 14 mg ca


prednisone 40mg uk deltasone online buy order prednisone 10mg generic


rybelsus us rybelsus us rybelsus 14 mg tablet


absorica buy online accutane 10mg canada order accutane online


purchase albuterol for sale albuterol order online albuterol inhalator order


amoxicillin 250mg cheap buy amoxil 500mg sale amoxicillin sale


buy augmentin 375mg pills order augmentin 375mg without prescription clavulanate pill


zithromax 500mg without prescription order zithromax zithromax generic


levothyroxine usa order levoxyl without prescription cheap levothroid for sale


blackjack online for real money casino online roulette real money online casino game


levitra 10mg pill vardenafil 20mg without prescription purchase levitra pill


how to buy lyrica buy generic pregabalin 75mg where can i buy pregabalin


buy generic hydroxychloroquine over the counter buy plaquenil 200mg sale buy hydroxychloroquine 400mg pills


triamcinolone oral buy triamcinolone pills for sale buy triamcinolone 10mg


cialis mail order us order tadalafil 5mg generic tadalafil 40mg


purchase desloratadine generic clarinex 5mg canada clarinex sale


order generic cenforce buy cenforce cheap buy cenforce 50mg pills


claritin generic loratadine order claritin over the counter


chloroquine for sale online chloroquine ca aralen 250mg brand


glucophage cheap purchase glucophage without prescription order glycomet 500mg generic


xenical 60mg oral order diltiazem online cheap diltiazem online buy


Leave a comment

We'll never share your email with anyone else. Required fields are marked *

Related Articles

Access specifier in php
Praful Sangani By Praful Sangani - July 20,2022