I'm working on a Laravel project and I'm struggling to switch the default demo page into another demo page.
I'm not sure where to begin and afraid of damaging the project.
I would appreciate it if you could guide me through switching the demo page step by step.
I need guidance on switching the demo page of a Laravel project. Can you help me with the steps?
Here is some general guide.
1. Visit the Metronic Layout Builder.
Download the HTML files of the demo layout you want to use. Eg.
https://preview.keenthemes.com/metronic8/demo60/layout-builder.html
2. Create a Folder in Resources:
Inside your Laravel project, create a new folder to store the layout files. For example, create a folder named layout inside the resources/views directory.
3. Rename HTML Files to Blade.php:
Move the downloaded HTML files into the resources/views/layout folder.
Rename each HTML file to have a .blade.php extension. You can use the following command to rename all files in a directory:
find /path/to/your/directory -type f -name "*.html" -exec sh -c "mv "$0" "${0%.html}.blade.php"" {} \;
<!--layout-partial:layout/_default.html-->
@include("layout._default")
@include("layout._default")
Thank you for your guidance. With your help, I can now make changes to the demo page.
You're welcome! I'm glad I could help. If you have any more questions or if there's anything else I can assist you with, feel free to ask.