DEF STUDIO srl

Laravel Enum Features

Latest Version on Packagist Downloads Tests Code Style Static Analysis License Follow Us

A simple trait to enable Laravel Pennant features using Enums

if(AppFeature::welcome_email->active()){
    Mail::to($newUser)->send(new WelcomeEmail($newUser));
}

Get the full source code at https://github.com/defstudio/enum-features

This package is powered by def:studio, follow us on Twitter

Edit this page
Last updated 26 April 2024