PATH:
home
/
rwabteecom
/
public_html
/
vendor
/
livewire
/
livewire
/
src
/
Features
/
SupportDisablingBackButtonCache
/
Editing: SupportDisablingBackButtonCache.php
<?php namespace Livewire\Features\SupportDisablingBackButtonCache; use Livewire\ComponentHook; class SupportDisablingBackButtonCache extends ComponentHook { public static $disableBackButtonCache = false; public static function provide() { $kernel = app()->make(\Illuminate\Contracts\Http\Kernel::class); if ($kernel->hasMiddleware(DisableBackButtonCacheMiddleware::class)) { return; } $kernel->pushMiddleware(DisableBackButtonCacheMiddleware::class); } public function boot() { static::$disableBackButtonCache = true; } }
SAVE
CANCEL