Comments (2)
i believe you need to set the Theme first.
I am my self new to this package. I read the documentation, and sadly there was not mentioned anywhere the usage for it in controllers, but looking in to the issues of others figured out you can set the theme, and use the same old laravel way of calling your views.
And this worked for me.
Route::get('/', function () {
Theme::set('lbcDefault');
return view('welcome');
// return \Igaster\LaravelTheme\Facades\Theme::url('welcome');
});
from laravel-theme.
from laravel-theme.
Related Issues (20)
- Potential issues with Hyn Tenancy (View [auth.login] not found.) HOT 9
- Lumen ? HOT 2
- Add support for Laravel 6.0 HOT 2
- mkdir(): No such file or directory HOT 1
- @js() doesnt accept http/https HOT 1
- Theming email template HOT 1
- Support for array dot
- Check, if cache file exists instead of having config value
- Timeline for laravel 7 support? HOT 1
- Anyone get this working with view composers for each theme? (overlapping view names) HOT 2
- View file path issue when loading from Namespace HOT 2
- Included files not rendering after upgrade HOT 2
- vendor views are not rendering with https://github.com/Okipa/laravel-table/ HOT 1
- Markdown not looking in right directories
- Package is not compatible with laravel 9 HOT 1
- Has this package been tested with any newer versions of Laravel?
- the directory separator is not correct for Windows.
- Allowed to keep the view paths added at runtime after setting theme
- Incompatible with Laravel 10 HOT 2
- Deprecation Warnings on PHP 8.2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-theme.