mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
19 lines
335 B
PHP
19 lines
335 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Concerns\GraphQL;
|
|
|
|
use Illuminate\Pipeline\Pipeline;
|
|
|
|
trait RunMiddlewares
|
|
{
|
|
protected function runHttpMiddleware(array $middleware = []): void
|
|
{
|
|
resolve(Pipeline::class)
|
|
->send(request())
|
|
->through($middleware)
|
|
->thenReturn();
|
|
}
|
|
}
|