Virtue

Extend the Laravel Framework with a collection of attributes

Virtue is a package that extends the Laravel Framework by providing a collection of attributes that you can use to configure and extend the built-in classes of the framework.

The focus of the package is to bring the power of the PHP 8 attributes to improve the DX on how to configure and extend your Laravel applications.

Example

Currently, this package provides attributes for Models and Commands.

Models

You can use the attributes to configure your models easily and intuitively (check out all the attributes in the docs):

Commands

You can configure the inputs needed for your commands using attributes (check out all the attributes in the docs):

Credits

Contributing

Check the Contributing Guide.

Last updated

Was this helpful?