GithubHelp home page GithubHelp logo

Comments (5)

arcanedev-maroc avatar arcanedev-maroc commented on August 17, 2024

Try to use the latest version (3.8.0) by editing your composer.json "arcanedev/log-viewer": "~3.0" and see if it's going to fix your issue.

By the way we don't have wiki, we have the docs folder instead.

Check also the installation guide.

from logviewer.

rocandante avatar rocandante commented on August 17, 2024

I edited composer.json file and try update but composer say: Nothing to install or update.

I think this error is because I use themes and the paths are registered through FileViewFinder, may need to register the package's routes there. Reach this conclusion because in a fresh installation of laravel all worked well for me.

Yep, you right about wiki, my mistake, I meant installation guide.

I'm googling a bit more to see that I can fix, I also go to try making my own views.

Thanks for the reply

from logviewer.

arcanedev-maroc avatar arcanedev-maroc commented on August 17, 2024

OK, i understand your issue now and it's not a bug related to log-viewer package.

Did you changed this method ? can you provide me some information ?

Try to leave the default views folder path and add your custom themes paths next to it like this:

// config/views.php
    'paths' => [
        realpath(base_path('resources/views')),
        realpath(base_path('resources/themes')), // or something else
    ],

Or try to restructure your folders like this.

resources/
    |-- assets/
    |-- lang/
    |-- views/
    |     |-- themes/
    |     |     |-- default/
    |     |     |-- dark/
    |     |     |-- light/
    |     |     |-- monokai/
    |     |-- vendor/
    |    ...
   ...

And leave the config/views.php as default.

If you remove the default views path from the config/views.php file, this may cause some issues because the package register the vendor views based on the default views path, check this line for more details.

from logviewer.

rocandante avatar rocandante commented on August 17, 2024

I have tried to resolve the issue but I'm not sure how to correctly modify the code that have related to FileViewFinder and include the path to the package. I have noticed that the view fails when called package::view but not if view name is path.view, I don't know why. I share the code use if anyone can give any clue what to do.

This is app/Providers/AppServiceProvider.php file:

    public function boot()
    {
        $this->app['view']->setFinder($this->app['theme.finder']);
    }

    public function register()
    {
      $this->app->singleton('theme.finder', function ($app) {
          $finder = new ThemeViewFinder($app['files'], $app['config']['view.paths']);

          $config = $app['config']['prado.theme'];

          $finder->setBasePath($app['path.public'].'/'.$config['folder']);
          $finder->setActiveTheme($config['active']);

          return $finder;
      });

However I have cloned the views and the controller included in Log-Viewer and used the API. It was very simple change all and everything works without any problems. Even suits views to the project's features and it looks cool:
http://imgur.com/uXLvUiK

By the way, according to composer I have installed version 3.8.0 but the package returns 3.7.9. I don't know if it is a package error.

Regards and thanks for help me

from logviewer.

arcanedev-maroc avatar arcanedev-maroc commented on August 17, 2024

You're welcome 👍 , glad that you've solved your issue.

And sorry about the LogViewer version, i've forgot to update it, my bad 😝 .

from logviewer.

Related Issues (20)

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.