worksome / laravel-direct-vue-routing
Add support for mapping Laravel routes directly to Vue components.
Fund package maintenance!
worksome
Installs: 118 825
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 11
Forks: 0
Open Issues: 0
Requires
- php: ^8.2
- illuminate/contracts: ^10.0 || ^11.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^2.6
- nunomaduro/collision: ^7.0 || ^8.1
- orchestra/testbench: ^8.0.8 || ^9.0
- pestphp/pest: ^2.33
- pestphp/pest-plugin-laravel: ^2.2
- worksome/coding-style: ^2.8
README
Add support for mapping Laravel routes directly to Vue components.
Installation
You can install the package via composer:
composer require worksome/laravel-direct-vue-routing
Optionally, you can publish the views using:
php artisan vendor:publish --tag="direct-vue-routing-views"
Usage
class TestController { public function __invoke() { return response()->vue('MyVueComponent', ['myProp' => 'my-data']) } }
Testing
composer test
Changelog
Please see GitHub Releases for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.