Implement Metronic in exit Laravel project
Hey,
Can you explain me how i implement your theme in a exist Laravel project? Which files i need to transfer? I dont want to use the whole Demo1.
King Regards
Jamie
Replies (1)
Hi Jamie C,
At least, you have to move these folders.
- app/Core/
- config/demo1/ (depending on your choice of demo)
- config/global/
- app/Http/Controllers/PagesController.php
- app/View/Components/
- app/helpers.php
- resources/assets
- resources/views/
- composer.json
- webpack.mix.js (do not need to replace yours, but you can copy the content and move it into your existing webpack config file)
Then the vendor is a generated folder. You can run "composer install" to setup.
The helpers.php file needs to include in the package.json.
"autoload": {
"files": [
"app/helpers.php"
], Please add the below code from this file;
app/Providers/AppServiceProvider.php
$theme = theme();
// Share theme adapter class
View::share("theme", $theme); Thanks