Unkown Kid
Unkown Kid

Reputation: 255

Laravel Different Views Folder

I have downloaded a project and I noticed that the project use views from different directory not the usual directory which are

\resources\views 

but instead it create a new folder name themes and insert all the views in there.

\themes\app\views

Views Directory

and also I noticed in the controller they return view by using getAppTheme()

Return View using getAppTheme()

Anyone know how I can create a new folder outside the \resources\views folder for all my views file. And how I can return view using getAppTheme() just like in the picture.

Upvotes: 1

Views: 1312

Answers (2)

Unkown Kid
Unkown Kid

Reputation: 255

Thanks but the answer I was looking for is in here https://github.com/Shipu/themevel Anyway, thanks again

Upvotes: 0

Wailan Tirajoh
Wailan Tirajoh

Reputation: 534

there a config for view path at laravel located at config/views.php

you can configure there by change this

'paths' => [
    resource_path('views'), //this value you need to change
],

Upvotes: 1

Related Questions