#8. Prevent Browser Back History in Laravel 10

preview_player
Показать описание
In this video, we will see how to prevent back history in laravel.
This Laravel e-commerce uses many components and tools. In development process, we used to link offline JS and CSS files, but on production mode you can use CDNs links for improving loading speed of pages. Below is some more important source of tools used in this project:

Get source code (Draft) by clicking on below links. This is a draft! It is not full code. This will vary according to the tutorial video we are on YouTube channel.

- 📥Get "Build Laravel 10 Multi Vendor ECommerce project - Draft"

Other required files:

- ✅Ijabo Packs:

- ✅IjaboShop - Simple Responsive HTML Ecommerce Frontend Template:
Рекомендации по теме
Комментарии
Автор

For those who need to upgrade Livewire from v2 to v3. Just watch this video:

sawastacks
Автор

if i click the backbuttton again it will shows the error like this

ErrorException

Error : Header may not contain more than a single header, new line detected

hemaj-kn
Автор

Thanks for the great tutorials you are giving us. The PreventBackHistory Middleware shows error on the header

public function handle(Request $request, Closure $next): Response
{
//return $next($request);
$response = $next($request);
return $response->header('Cache-Control', 'nocache, no-store, max-age=0;must-revalidate')
->header('Pragma', 'no-cache')
->header('Expires', 'Sun, 02 Jan 1990 00:00:00 GMT');
}

angelukpong
Автор

This method does not work with Firefox

miaowangpark
Автор

If you click on back button for second time it will go back, please check that.

rekawt-anwar