Hello Frinds | after alot of searches in the internet i found the The solution In app service provider
/* in AppServiceProvider */
public function register()
{
// dynamically set the rootview based on whether the route is backend or frontend
// can also be done in a middleware that wraps all admin routes
if(request()->is('admin/*')){
Inertia::setRootView('admin.app');
} else {
Inertia::setRootView('frontend.app');
}
....
}
Source Of Answer https://github.com/inertiajs/inertia-laravel/issues/22