:package_description
Install the package with Composer:
composer require :vendor_slug/:package_slugPublish the assets they are copied to public/vendor/:package_slug.
php artisan vendor:publish --tag=":package_slug-assets"You can publish and run the migrations using:
php artisan vendor:publish --tag=":package_slug-migrations"
php artisan migrateYou may also publish additional resources to tailor the package to your project:
-
Config file to adjust defaults package settings:
php artisan vendor:publish --tag=":package_slug-config"- Check the current configurations in here.
-
Views (if you need to override the Blade views):
php artisan vendor:publish --tag=":package_slug-views"
$instance = new \VendorName\Skeleton();
echo $instance->somethingNonStatic();
// OR
\VendorName\Skeleton\Facades\Skeleton::somethingStatic();-
Just like Spatie's, you shuold run configure.php script to rename the template to your package.
-
Since the package is utilizing Orchestra Testbench for the testing environment, its configuration file testbench.yaml should be looked at.
-
Running the Laravel Boost MCP server is done with
./vendor/bin/testbench boost:mcpinstead ofphp artisan boost:mcpor optionally via VSC command prompts.- Normally, VSC users should have their MCP client pointing at
./vendor/bin/testbench boost:mcp. (Check .vscode/mcp.json) - HOWEVER, I have consistent configuration in
laravel-boost-mcp.shfile to look for both application setup's boost as well as the package's. And that's why we're pointing to that Bash file to handle the redirection.
- Normally, VSC users should have their MCP client pointing at
If you're using ChatGPT Codex in VSC or whatever, make sure your config.toml has at least the following:
[mcp_servers.laravel-boost]
command = "./laravel-boost-mcp.sh"I was only able to get it to work using the @openai/cli package ran via npm, and the VSC extension wan't able to establish a connection for some reason... Still, the VSC extension is very useful to ask when the environment is broken and retain full access to project files.
Keep in mind the following when using Workbench:
- Run
./vendor/bin/testbenchinstead ofartisanfor Laravel commands; maybe you'd create also an system terminal alias for it, I usebench.- Composer
scriptslisted in composer.json utilize it for the commands. - After running
composer serve, visithttp://localhost:8000to see the demo page in action.
- Composer
- Service providers are managed through workbench/bootstrap/providers.php array.
- Environment variables are defined in testbench.yaml file.
composer test[!NOTE] For code coverage add
--coverage, and for faster runs add--parallel.
Support ongoing package maintenance as well as the development of other projects through sponsorship or one-time donations if you prefer.