luuhai48 / flarum-tinker
Brings Laravel Tinker to Flarum
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 2
Open Issues: 0
Type:flarum-extension
Requires
- flarum/core: ^0.1.0-beta.14
- laravel/tinker: v2.5
This package is not auto-updated.
Last update: 2024-11-04 19:54:51 UTC
README
A Flarum extension allows you to interact with your entire Flarum application on the command line, including the Eloquent ORM, jobs, events, and more.
Installation
composer require luuhai48/flarum-tinker
Enable the extension in your admin setting panel, or you can add these lines to your {project_root}/extend.php
file.
return [ (new Extend\Console())->command(Luuhai48\FlarumTinker\TinkerCommand::class), (new Extend\Console())->command(Luuhai48\FlarumTinker\TinkerInstallCommand::class), ];
Updating
composer update luuhai48/flarum-tinker
(Optional if you want to use alias classes)
composer dump-autoload -o
Run the command below, you will find a config file published to {project_root}/config/tinker.php
.
php flarum tinker:install
Modify config file if you want to alias classes from specific package of your choice.