Comments (5)
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.
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.
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.
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.
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)
- Array to string conversion problem : @lang('Header') HOT 1
- support multiple patterns for file names HOT 2
- Large Log file
- Laravel 10 Support HOT 5
- Filtering an error stacktrace to display only entries which are modified by user (views, models etc) and not in the app (e. vendors folder)
- Version 4.7.1 Vulnerability
- impossible to publish HOT 1
- I want to customize the names of the levels HOT 3
- Does this version of log viewer work with Lumen? HOT 1
- Version 4.7.1 Reflected XSS Vulnerability HOT 1
- Search all logs
- local.ERROR: Target [Arcanedev\LogViewer\Contracts\LogViewer] is not instantiable while building [Arcanedev\LogViewer\Http\Controllers\LogViewerController].
- #feature request: Filter out all user-non-editable lines in stack listing
- Need Support of Nginx logs too
- Support Laravel 11
- Laravel 11 - Error installing HOT 5
- Target class [access_logs] does not exist. HOT 1
- CSRF Token mismatch error for bootstrap-5 theme
- How to make it compatibe with localization ? this package : https://github.com/mcamara/laravel-localization
- Class "Route" not found
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 logviewer.