The Laravel Approval package requires approval of new Model data before being persisted. This package uses Enums and thus requires PHP 8.1 and Laravel 9.To get started with this package, use the provided MustBeApproved trait on a model:1use Cjmellor\Approval\Concerns\MustBeApproved;2 3class Post extends Model4{5 use...
17 August, 2022
Create Select Options from Enums, Laravel Models, and more
Programing Coderfunda
August 17, 2022
Laravel, Packages
No comments
Laravel Options by Spatie is a package to create lists of options from different sources: " "" "> " "";">A typical web application always has many select fields with options. This package makes it simple to transform enums, models, states, and arrays to a unified option structure.An example...