<?php
namespace {{namespace}};

use TypeRocket\Http\Middleware\Middleware;

class {{middleware}} extends Middleware
{
    public function handle()
    {
        $request = $this->request;
        $response = $this->response;

        // Do stuff before controller is called

        $this->next->handle();

        // Do stuff after controller is called
    }
}