Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Console Helpers Laravel Package

queents/console-helpers

View on GitHub
Deep Wiki
Context7

Laravel Console Helpers

tons of helper you need for you artisan command line application

Installation

composer require queents/console-helpers

Usage

we have a Traits that you can use in your artisan command class

Run PHP Command

you can run direct php command like this

use Queents\ConsoleHelpers\Traits\RunCommand;

class MyCommand extends Command{
    use RunCommand;
}
$this->phpCommand('echo "welcome";');

Run Yarn Command

you can run direct yarn command like this

use Queents\ConsoleHelpers\Traits\RunCommand;

class MyCommand extends Command{
    use RunCommand;
}
$this->yarnCommand('echo "welcome";');

NOTE

you can update yarn path from config file.

Run Artisan Command

you can direct run artisan command by using this method

use Queents\ConsoleHelpers\Traits\RunCommand;

class MyCommand extends Command{
    use RunCommand;
}
$this->artisanCommand('migrate');

Handle Stubs File Template

you can handle stubs file template and copy change or add new data by using this method

use Queents\ConsoleHelpers\Traits\HandleStubs;

class MyCommand extends Command{
    use HandleStubs;
}
$this->generateStubs(
    __DIR__ . "/stubs/SettingsClass.stub",
    "Modules/Base/Settings/MainSettings.php",
    [
        "settingName" => "site_url",
        "moduleName" => "Base",
        "settingField" => Str::lower("site_url")
    ],
    [
        "Modules/Base/Settings/"
    ]
);

Handel Modules Actions

this command is working with laravel-modules you can active all modules or stop all modules or active selected module by this methods

use Queents\ConsoleHelpers\Traits\HandleModules;

class MyCommand extends Command{
    use HandleModules;
}
$this->activeAllModules();
$this->stopAllModules();

this method take 2 parameter first is module name and second is active/stop bool by default is true

$this->activeModule("Base");

Support

you can join our discord server to get support VILT Admin

Docs

look to the new docs of v4.00 on my website Docs

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver