Code Monkey home page Code Monkey logo

laravel-themer's People

Contributors

hkp22 avatar laravel-shift avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

laravel-themer's Issues

have bug in build

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

Can't use multiple themes in same time with Vite

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.

How to set theme for Parent

Hi admin,
I want to method set parent theme, I only see get parent theme

// Get current parent theme
Theme::parent();

Thanks

The Middleware in my opinion doesn't work properly.

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?

make:theme can't find app.blade.php after creation

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()

mix-manifest.json file not appearing after compiling theme assets.

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?

after all setup have an error

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

Laravel Cache Busting not working anymore.

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.