qirolab / laravel-themer Goto Github PK
View Code? Open in Web Editor NEWMulti theme support for Laravel application
Home Page: https://qirolab.com
License: MIT License
Multi theme support for Laravel application
Home Page: https://qirolab.com
License: MIT License
after build return error
Vite manifest not found at: /themer/public/build/manifest.json
becuase build folder not exist and just have /public/vahid and cant detect /public/vahid/manifest.json
build theme must add in /public/build/vahid
Hello,
Thanks a lot for this greate package, I use it with every project even If I need single theme! really in love with it ๐
The issue :
In version 2 with the vite thing, when we do npm run build:theme1
and then npm run build:theme2
There is only one build folder
in public and one manifesto file, which breaks everything.
Not like the v1 when using mix, there were multiple build folders for each theme in public/theme1/css
and public/theme2/css
etc ..
Any idea how this will be resolved ?
Thanks.
hi dear
I have multi tenant system and i want to have some themes for tenants with selecting option .
how can do that with this package?
thanks
Hi admin,
I want to method set parent theme, I only see get parent theme
// Get current parent theme
Theme::parent();
Thanks
I have a page and a route "a" that belongs to theme1. I added the Middleware to the Kernel and added a Middleware on this route in web.php and set it to "theme:theme1". Right now the active theme is set to theme2 in config/theme.php but when I go to /a I still see the page, it should not allow you to view the page, that's the whole point of a Middleware. Did I do something wrong?
Laravel view directory changed, but not changed for livewire. Still calling blades in "resource/views/livewire"
How can I resolve this issue?
Hey there,
I've created a new laravel project, installed breeze and wanted to install this project for multi-theme support.
After installing and exporting the config, I've tried running make:theme and went through the creation dialog.
After completion, it creates the needed controllers and a folder within /themes but throws an exception in the console that it can't find an app.blade.php within the theme folder.
My theme folder after the command ended:
test-theme
- js
- components
- ExampleComponent.vue
- app.js
- bootstrap.js
- views
- vite.config.js
The exception in the console:
ErrorException
file_get_contents(/var/www/html/themes/test-theme/views/layouts/app.blade.php): Failed to open stream: No such file or directory
at vendor/qirolab/laravel-themer/src/Presets/Traits/HandleFiles.php:26
22โ }
23โ
24โ protected function replaceInFile(string $search, string $replace, string $path): int|bool
25โ {
โ 26โ return file_put_contents($path, str_replace($search, $replace, file_get_contents($path)));
27โ }
28โ
29โ public function createFile(string $path, string $content = ''): int|bool
30โ {
+17 vendor frames
18 artisan:35
Illuminate\Foundation\Console\Kernel::handle()
view load fine first time but when Livewire component state changed it gave me error view not fount
Hi,
I created a new theme add selected skip for everything because I have an existing application that has Bootstrap, Blade and Authentication.
So I'm creating folders manually based on the Advertised Video Tutorial. My only issue is that when I run npm run dev --theme=theme-name it compiles my assets but doesn't produce a mix-manifest.json inside my theme folder.
How can I solve this issue?
The files and changes inside the vendor directory isn't being read by this package. Any work around?
Fatal error: Uncaught ReflectionException: Class theme.finder does not exist in /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php:833 Stack trace: #0 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(833): ReflectionClass->__construct('theme.finder') #1 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(714): Illuminate\Container\Container->build('theme.finder') #2 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(841): Illuminate\Container\Container->resolve('theme.finder', Array, true) #3 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(652): Illuminate\Foundation\Application->resolve('theme.finder', Array) #4 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(826): Illuminate\Container\Container->make('theme.finder', Array) #5 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(119): Illuminate\Foundation\Application->make(' in /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 835
Hi,
Laravel Cache Busting isn't working anymore. Our project before integrating the Qirolab Theming Plugin, instead of the asset function we used the mix function and then added this in our root webpack.mix.js file:
if (mix.inProduction()) {
mix.version();
}
Our css and js files used to have a hash at the end of the file name, now using the Plugin, they don't the hash anymore.
Does this Plugin support Laravel Cache Busting?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.