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?
1 Answer. Show activity on this post. 'paths' => [ realpath(base_path('resources/views')) ], So you might change it to realpath(base_path('public/assets/views')) to be in your public path.
There is currently no way to change the public directory even though you can change $app['path'] and $app['path.
Views are stored in the resources/views directory. return view('greeting', ['name' => 'James']); }); As you can see, the first argument passed to the view helper corresponds to the name of the view file in the resources/views directory.
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.
'paths' => [
// src/MyNamespace/resources
realpath(base_path('src/MyNamespace/resources')),
// app/resources
realpath(app_path('resources'))
],
app_path()
, base_path()
, or neither.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With