You can register the mixin class in the register
method of a Laravel service provider:
use Illuminate\Foundation\Testing\TestResponse;
TestResponse::mixin(TestResponseMixin::class);
/* | |
|-------------------------------------------------------------------------- | |
| Spacing | |
|-------------------------------------------------------------------------- | |
| | |
| Utilities for controlling an element's padding and margin. | |
| | |
*/ | |
$spacing-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?}'; |
You can register the mixin class in the register
method of a Laravel service provider:
use Illuminate\Foundation\Testing\TestResponse;
TestResponse::mixin(TestResponseMixin::class);