Add support for mapping Laravel routes directly to Vue components.
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"
class TestController
{
public function __invoke()
{
return response()->vue('MyVueComponent', ['myProp' => 'my-data'])
}
}
composer test
Please see GitHub Releases for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.