From d263c39447375b654e5b5fff250ca04eafc5f49e Mon Sep 17 00:00:00 2001 From: Reindert Vetter Date: Tue, 14 Sep 2021 00:13:51 +0200 Subject: [PATCH] Bind middleware --- src/Middleware/Version/Bind.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/Middleware/Version/Bind.php diff --git a/src/Middleware/Version/Bind.php b/src/Middleware/Version/Bind.php new file mode 100644 index 0000000..0fe093d --- /dev/null +++ b/src/Middleware/Version/Bind.php @@ -0,0 +1,26 @@ +abstract = $abstract; + $this->conrete = $conrete; + } + + public function handle(Request $request, Closure $next) + { + app()->bind($this->abstract, $this->conrete); + + return $next($request); + } +}