Use Illuminate\Contracts\Routing\ResponseFactory;
public function boot(ResponseFactory $response)
{
$response->macro('caps', function ($value) {
//
});
}
The Boot Method: Boot Method Dependency Injection —
Structure map
Clickable & Draggable!
The Boot Method: Boot Method Dependency Injection —
Related pages: