3x1io / filament-themes

FrontEnd Themes Manager For Filament Admin
https://github.com/3x1io/filament-themes
MIT License
33 stars 8 forks source link

Cannot Found new Controller for second theme #1

Closed irfnrdh closed 2 years ago

irfnrdh commented 2 years ago

I have create other theme but Target class [Themes\second\controllers\HomeController] does not exist

route

Route::middleware(['web'])->group(static function () {
    Route::namespace(theme_namespace())->name('theme/')->group(static function () {
        Route::get('/','HomeController@index')->name('index');
    });
});
3x1io commented 2 years ago

try to add this to your composer.json

    "autoload": {
        "psr-4": {
            "App\\": "app/",
            "Database\\Factories\\": "database/factories/",
            "Database\\Seeders\\": "database/seeders/",
            "Themes\\": "resources/views/themes/"
        }
    },
3x1io commented 2 years ago

i add this to the docs, thanks

irfnrdh commented 2 years ago

Thanks that problem solve, but every time I add new route that always call "php artisan optimize" how to make it works auto without command ^_^ oh ya, how to costume group page $navigationGroup, Thanks @3x1io