. */ declare(strict_types=1); namespace FireflyIII\Http\Controllers\Webhooks; use FireflyIII\Http\Controllers\Controller; use Illuminate\Contracts\View\Factory; use Illuminate\View\View; /** * Class CreateController */ class CreateController extends Controller { /** * */ public function __construct() { parent::__construct(); // translations: $this->middleware( function ($request, $next) { app('view')->share('mainTitleIcon', 'fa-bolt'); app('view')->share('subTitleIcon', 'fa-plus'); app('view')->share('title', (string) trans('firefly.webhooks')); app('view')->share('subTitle', (string) trans('firefly.create_new_webhook')); return $next($request); } ); } /** * Show debug info. * * @return Factory|View */ public function index() { $previousUrl = $this->rememberPreviousUrl('webhooks.create.url'); return view('webhooks.create', compact('previousUrl')); } }