This package contains some "utils" that I often use in my Laravel projects.
You can install the package via composer:
composer require alexmanase/utilsInspired by Livewire Flux's class-merging approach.
use AlexManase\Utils\Facades\ClassNames;
echo ClassNames::add(['btn', 'btn-primary' => true, 'btn-disabled' => false]);
// btn btn-primary
echo ClassNames::make()
->add('btn')
->add(['btn-primary' => true]);
// btn btn-primarycomposer testPlease see CHANGELOG 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.