RouteServiceProvider.php
public function boot()
{
$str= request()->getRequestUri();
if(str_contains($str, '/index.php'))
{
header("Location: https://www.example.com/");
exit();
}
if(str_contains($str, '/public/'))
{
header("Location: https://www.example.com/");
exit();
}
parent::boot();
}
No comments:
Post a Comment