New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

xtheme/artisan-ui

Run your artisan commands by pressing buttons.
1,076
Install
composer require xtheme/artisan-ui
Latest Version:1.0.3
PHP:^8.2
Laravel:11 · 12 · 13
License:MIT
Last Updated:Apr 22, 2026
Links: GitHub  ·  Packagist
Maintainer: xtheme

🧰 Artisan UI

Latest Version on Packagist GitHub Tests Action Status Total Downloads

artisan-ui

Installation

composer require xtheme/artisan-ui
php artisan artisan-ui:install

Usage

Just go to /artisan and enjoy! 🌺

artisan-ui-detail

Configure access

By default, Artisan UI is only available on local environments. You can provide your own custom authorization logic by providing a callback to the ArtisanUI::auth method. As usual, you may add this logic to any of your service providers.

The following example allows any user on local environments but only admin users on other environments.

use Xtheme\ArtisanUI\Facades\ArtisanUI;

ArtisanUI::auth(function ($request) {
    if (app()->environment('local')) {
        return true;
    }

    return $request->check() && $request->user()->isAdmin();
});

Configure routes

You may change the path and domain of the Artisan UI routes to suit your need using the configuration file located in config/artisan-ui.php.

Additionally, you may use this configuration file to update the middleware of these routes. By default, the web middleware group is used as well as the AuthorizeArtisanUI middleware which protects the Artisan UI routes using the callback provided to the ArtisanUI::auth method above. Feel free to override that middleware for more custom authorization logic but remember that, without it, the Artisan UI routes will be available to everyone!

Configure command whitelist

You may restrict which commands are visible and executable from Artisan UI by setting command_whitelist in config/artisan-ui.php.

'command_whitelist' => [
    'update_game_list',
],

When command_whitelist is null, all artisan commands remain available.

Whitelist entries also support prefix wildcard patterns:

'command_whitelist' => [
    'cache:*',
    'queue:*',
],

You may also blacklist specific commands that should never be visible or executable from the UI:

'command_blacklist' => [
    'migrate:*',
    'db:*',
    'tinker',
],

Wildcard patterns are prefix-based and should end with *.

When both are configured, blacklist rules take precedence over whitelist rules.

Update assets

If you've recently updated the package and something doesn't look right, it might be because the CSS file for the package is not up-to-date and needs to be re-published. Worry not, simply run the artisan-ui:install command again and you're good to go. You can even do that from the UI now! 🤯

php artisan artisan-ui:install

Related Packages

davidmanassa/artisan-ui

Run your artisan commands by pressing buttons.

6,082 0
lorisleiva/artisan-ui

Run your artisan commands by pressing buttons.

4,220 224
laravel/ui

Laravel UI utilities and presets.

163,472,442 2,718
mlntn/lumen-artisan-serve

artisan serve for Lumen projects

100,932 49
novius/laravel-artisan-streamed

Launch and view outputs of artisan commands.

8,165 0

Version History

Version Released PHP Laravel License
1.0.3 ^8.2 ^11.0|^12.0|^13.0 MIT
1.0.2 ^8.2 ^11.0|^12.0|^13.0 MIT
1.0.1 ^8.2 ^11.0|^12.0|^13.0 MIT
v1.0.0 ^8.2 ^11.0|^12.0|^13.0 MIT