# Tasks Module
- ./modules/tasks/catalog/controller/api/modules/tasks.php:/var/www/html/catalog/controller/api/modules/tasks.php
- ./modules/tasks/catalog/model/api/modules/tasks.php:/var/www/html/catalog/model/api/modules/tasks.php
<Route element={<LayoutContainer currentLayout="backend"/>}>
<Route path="/dashboard" element={<Dashboard />} />
</Route>
<Route element={<LayoutContainer currentLayout="frontend"/>}>
<Route path="/" element={<Home />} />
</Route>
import React, {lazy, useEffect, useState} from "react";
import FrontendLayout from "./frontend/index.jsx";
import BackendLayout from "./backend/index.jsx";
const LayoutContainer = ({ currentLayout }) => {
const [layout, setLayout] = useState();
useEffect(() => {
setLayout(currentLayout);
}, []);
const CssLayout = () => {
console.log('layout',layout)
if (layout === 'backend') {
import('../../../css/backend/index.css');
} else if (layout === 'frontend') {
import('../../../css/frontend/index.css');
}
}
return (
<>
<CssLayout/>
{layout === 'backend' ? <BackendLayout/> : <FrontendLayout/>}
</>
)
}
export default LayoutContainer;
Fatal error: Uncaught RuntimeException: A facade root has not been set. in
/var/www/html/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:335 Stack trace: #0
/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/RegisterErrorViewPaths.php(18): Illuminate\Support\Facades\Facade::__callStatic() #1
/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(642): Illuminate\Foundation\Exceptions\RegisterErrorViewPaths->__invoke() #2
/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(623): Illuminate\Foundation\Exceptions\Handler->registerErrorViewPaths() #3
/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(554): Illuminate\Foundation\Exceptions\Handler->renderHttpException() #4
/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(460): Illuminate\Foundation\Exceptions\Handler->prepareResponse() #5
/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(377): Illuminate\Foundation\Exceptions\Handler->renderExceptionResponse() #6
/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(493): Illuminate\Foundation\Exceptions\Handler->render() #7
/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(138): Illuminate\Foundation\Http\Kernel->renderException() #8 /var/www/html/public/index.php(59): Illuminate\Foundation\Http\Kernel->handle() #9 {main} thrown in
/var/www/html/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php on line 335