স্কিপ করে মূল কন্টেন্ট এ যান

PHP Info

super-admin-org/phpinfo shows the output of phpinfo() as an admin page, split into sections (core, modules, environment).

Packagesuper-admin-org/phpinfo
Admin URL/admin/phpinfo
MenuPhpinfo
Secrets on this page

By default the page includes the environment and PHP variables sections, which contain your .env values such as APP_KEY and database passwords. Limit it to configuration and modules:

'extensions' => [
'phpinfo' => [
'what' => INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES,
],
],

and grant access only to trusted administrators. Disable it in production when you do not need it ('enable' => false).

Installation​

composer require super-admin-org/phpinfo
php artisan admin:import phpinfo

The package has no tagged release yet. If Composer reports that no stable version matches, require the development version: composer require super-admin-org/phpinfo:dev-main.

admin:import adds the menu item only. To give a role access, create a permission with the HTTP path /phpinfo under Admin > Permission and assign it.

Configuration​

KeyDefaultMeaning
whatINFO_ALLThe phpinfo() flags to show.
enabletruefalse removes the page.

Compatibility​

LaravelPHPState
8 – 138.0+Works. On servers without output buffering the page can fail with "ob_end_clean(): Failed to delete buffer"; a fix is planned.