Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I want to know the way to use my multiple homepage design in Laravel. And User can switch homepage design from site settings like wordpress. Can anyone help me to find the way to make laravel website with multiple home page system?
The question is quite general so I'll share my personal approach:
I create several template folders in my view directory with the same blade file structure inside.
Then from the Controller, I just change the call to the view according to the requested template:
return view($template_name . '.index');
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed last year.
Improve this question
I am creating a website that will contain free web design templates for downloading will be most likely same https://htmlcodex.com, the idea is to upload the full template .zip through the admin panel and then extract it in the laravel project public folder to be previewed as live demo for the template, but i do not know how to access the whole assets that will be inside the template and it should not be written with asset('css/style.css'), please help if you had done some project similar.
I already can display pages, but can not access the assets.
I have solved it, by putting all templates folder in the laravel public path directly.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Normal, I usually define like this to create multiple languages for my site.
Like this:
en-en.php
define("HOMEPAGE", "Home Page");
vi-vi.php
define("HOMEPAGE", "Trang chủ");
Current, I load this menu from my database.
Has anything to create multiple language sites when load data from the database?
Thank you very much.
I would use Google's website translator
It's a simple plugin that allows you to convert any page to 100+ different languages live.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am new to the Laravel5 framework , so that I have no idea about this.I want to fetch data from a website and store that in my database.can anyone provide a sample coding that will come under model , view , controller and route, so that I can understand it in better way.
everything except something's come under model controller view and routes.
start from the Tutorials docs and continue to The Basics
navigate in the left navigation from top to bottom
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I've started recently working with yii2.Using the basic app is easy but what I need to do now is to create an advanced template which has more that frontend and backend.I need it to also have midend and one more compoenent(same as frontend/backend folders).I have been trying to search on the internet but I did not find anything usefull.
I would be grateful if any of you guys can help me out here.
Best regards,
Marius
Copy the backend folder to a new folder, search for "backend" in the project and replace / add a link to the new folder you have created.
There are not so many places, there is one in common/config/bootstrap.php and the rest I believe are in the new "backend" folder. Remember to change the namespaces of controllers / models etc.
I have made this recently, it is easier then you think.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Im using a custom MVC built by me..
Im fairly new to this approach, and im having some trouble to understand all of this.
My website has a login system that allows the users to log in in any page(view).
What i want to do is:
After the user logs in, the controller will render the view he was on before the call to the controller login function.
So header is out of the options since i need to send a view to be rendered
Does anyone has a solution to do this?
Why don't you track the where the user came from in a session variable?
Session is always available.
Sessions are not accessable to anyone outside you're system.