You can register the mixin class in the register method of a Laravel service provider:
use Illuminate\Foundation\Testing\TestResponse;
TestResponse::mixin(TestResponseMixin::class);| /** Requires: https://csswizardry.com/Obs.js/demo/ */ | |
| @custom-variant has-bandwidth-high { | |
| &:where(.has-bandwidth-high *) { | |
| @slot; | |
| } | |
| } | |
| @custom-variant has-battery-charging { | |
| &:where(.has-battery-charging *) { |
| <?php | |
| use Filament\View\PanelsIconAlias; | |
| use Filament\Support\Icons\Heroicon; | |
| use Filament\Forms\View\FormsIconAlias; | |
| use Filament\Tables\View\TablesIconAlias; | |
| use Filament\Support\Facades\FilamentIcon; | |
| use Filament\Schemas\View\SchemaIconAlias; | |
| use Filament\Actions\View\ActionsIconAlias; | |
| use Filament\Support\View\SupportIconAlias; |
You can register the mixin class in the register method of a Laravel service provider:
use Illuminate\Foundation\Testing\TestResponse;
TestResponse::mixin(TestResponseMixin::class);| /** | |
| * Register a new wildcard route that returns a view if it exists. | |
| * | |
| * @param string $path | |
| * @param string $viewDirectory | |
| * @param array $data | |
| * @return \Illuminate\Routing\Route | |
| */ | |
| \Route::macro('viewDir', function ($path, $viewDirectory = null, $data = []) { | |
| $pathWithSegments = trim($path, '/') . '/{page?}'; |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Spacing | |
| |-------------------------------------------------------------------------- | |
| | | |
| | Utilities for controlling an element's padding and margin. | |
| | | |
| */ | |
| $spacing-class: ( |
| -- Weigh rows against eachother based on different conditions, | |
| -- ordering the results based on their given weights so that | |
| -- more precise matches will show higher up in the results. | |
| -- In this example, an exact match will show up at the top | |
| -- of the results, a match at the beginning of the string | |
| -- will show next, and a match anywhere will show last. | |
| set @query = 'Liam'; |
| <?php | |
| set_bitmask_flags([ | |
| 'FLAG_1', | |
| 'FLAG_2', | |
| 'FLAG_3', | |
| 'FLAG_4', | |
| 'FLAG_5', | |
| ]); |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Spacing | |
| |-------------------------------------------------------------------------- | |
| | | |
| | Utilities for controlling an element's padding and margin. | |
| | | |
| */ | |
| $spacing-class: ( |