How change view folder in Laravel5?

0 votes
I am developing an web application using Laravel 5 and AngularJS. I am using pure angularJS app for the client side and I am putting the client app files (views) in my public folder.

In Laravel 4, I could change the path from the bootstrap/start.php file. But in Laravel 5, I can not see the start.php file. So where do I change the configuration in Laravel 5?
Sep 25 in Laravel by kartik
• 30,230 points
26 views

1 answer to this question.

0 votes

Hello @kartik,

See line 16 of config/view.php (the "View Storage Paths" section)

'paths' => [
    realpath(base_path('resources/views'))
],

So you might change it to realpath(base_path('public/assets/views')) to be in your public path.

Hope it helps!!

Thank you!!

answered Sep 25 by Niroj
• 65,500 points

Related Questions In Laravel

+1 vote
2 answers

How to access images inside public folder in laravel?

You simply need to use the asset helper function ...READ MORE

answered Aug 27 in Laravel by Dsouza
• 150 points
9,754 views
0 votes
1 answer

How to break a for each loop in laravel blade view?

Hello @kartik, By default, blade doesn't have @break and @continue which are ...READ MORE

answered Apr 6 in Laravel by Niroj
• 65,500 points
2,375 views
+1 vote
1 answer

How to load blade or php content into a view via ajax/jquery in laravel?

Hello @kartik, Assuming you're using jQuery... create a route ...READ MORE

answered Apr 14 in Laravel by Niroj
• 65,500 points
3,684 views
0 votes
1 answer

How to pass data to mail View in laravel Mail send?

Hello @kartik, Send data like this. $data = [ ...READ MORE

answered Jul 30 in Laravel by Niroj
• 65,500 points
238 views
+1 vote
1 answer

How to make anchor tag with routing using Laravel?

Hey @kartik, First you have to go to ...READ MORE

answered Mar 18 in Laravel by Niroj
• 65,500 points
2,674 views
0 votes
1 answer

What is redirection in Laravel?

Named route is used to give specific ...READ MORE

answered Mar 18 in Laravel by Niroj
• 65,500 points
322 views
0 votes
1 answer

How to install Laravel via composer?

Hello, This is simple you just need to ...READ MORE

answered Mar 23 in Laravel by Niroj
• 65,500 points
220 views
+1 vote
1 answer

What are named routes in Laravel and How can specify route names for controller actions?

Hey @kartik, Named routing is another amazing feature of ...READ MORE

answered Mar 23 in Laravel by Niroj
• 65,500 points
3,325 views
0 votes
1 answer

How can someone change the default database type in Laravel?

Laravel is configured to use MySQL by ...READ MORE

answered Mar 20 in Laravel by Niroj
• 65,500 points
504 views
0 votes
1 answer

How to include a sub-view in Blade templates in Laravel?

Hello @kartik, You can use the blade template ...READ MORE

answered Mar 31 in Laravel by Niroj
• 65,500 points
2,022 views