Showing 1 – 3 of 3 replies
Sergiusz

Cannot redeclare renderSubMenu() (previously declared in

Sergiusz PURCHASED
1 month ago
Hi, I am new to laravel. I'm trying to add a theme but I got this message:

Cannot redeclare renderSubMenu() (previously declared in C:\laravel\Projekty\testbootstrap\storage\framework\views\37fe2282cf96c60fe9a8685983a57110.php:62)

how to solve the problem?
Or is there a video on YT on how to properly add this template to a project?
SeanTheme
SeanTheme SELLER
1 month ago
Hi,

Could you please share the steps you've taken on your end? This will help us better understand the current issue you're facing and assist you accordingly.

Additionally, I'd like to emphasize that integrating our template into your Laravel project should be seamless, provided that you've included the necessary CSS and JS files and applied the Color Admin CSS class structure.

Best regards,
Sean
Sergiusz
Sergiusz PURCHASED
1 month ago
I will describe step by step what I am doing:

1)I create a new project
2) I run in the console:
1. composer install
2. npm install --force
3. npm run dev
4. php artisan serve
3) from /admin/template copy the entire assets folder and paste it into
Admincolor /public/
4)I copy all the packages into package.json and run npm install
5) npm run dev
5) I got an error message about missing webpack.mix.js files
6) I copied the webpack.mix.js file from the template.
7) I copied all the folders from the color_admin_v5.3.2\admin\template\template_laravel_startup\resources
I pasted this into my project into
Admincolor/resources

I cant past screen here

Symfony \ Component \ ErrorHandler \ Error \ FatalError
PHP 8.2.12
10.48.4

Cannot redeclare renderSubMenu() (previously declared in E:\Laravel\Projekty\admincolor\admincolor\storage\framework\views\233f65bef47f6a50483bcdfef2982823.php:62)
SeanTheme
SeanTheme SELLER
1 month ago
Hi,

Unfortunately, you can't direct copy and paste the whole thing into your existing project. You should do it step by step

e.g

1. include the required css / js file
2. change the previous html structure to color admin html structure and css class

Best Regards,
Sean.