iPurpl3x Hi there, Is there any way to set up an REPL like php artisan tinker to test stuff while developing extensions ? If not, it would be really great to see this in a future version of Flarum.
iPurpl3x luceos Any idea how to do this? Could I make an extension that adds a Console command which fires Tinker? Will I need to do something with the TinkerServiceProvider? I tried to find out how Laravel does it (how they add it to the artisan commands) but I don't quite understand it...
luceos First step would be to create a WIP extension using the repository path method in your development environment. The composer.json of your extension would then add the dependency on https://github.com/laravel/tinker ; this only guarantees the code is now available. So you will have to register the tinker command and any direct dependencies that are required through the extend.php in your extension.
iPurpl3x luceos Many thanks, I managed to make it work! I'll ask my boss if I can share it with the community.