A Laravel package to declare Livewire routes using PHP attributes.
Inspired by spatie/laravel-route-attributes and Symfony routing, this package brings a declarative route definition approach to Livewire components.
Here's a quick example:
use Yamous\LivewireRouteAttributes\Attributes\Route;
class DefaultController
{
#[Route(uri: 'index', methods: 'GET', name: 'default.index')]
public function index()
{
}
}composer testThis package is inspired by :
The MIT License (MIT). Please see License File for more information.