ARCANEDEV / LogViewer

:page_with_curl: Provides a log viewer for Laravel
MIT License
2.37k stars 335 forks source link

arcanedev logviewer pagination icon twice #416

Closed ahadtaji21 closed 8 months ago

ahadtaji21 commented 2 years ago

arcanedev logviewer pagination icon twice

Laravel 8 PHP 7.4 bootstrap 4

it is showing twice pagination ico error n

isudakoff commented 2 years ago

Same issue

Laravel 8 PHP 8.1.3 Bootstrap 4

logs_screenshot2

ahadtaji21 commented 2 years ago

yes, I research a lot and I think we need to stop the tailwind CSS disabled. Maybe. hope so administrator could share a solution

isudakoff commented 2 years ago

Yeah! I reread docs again and fix it.

Now it looks perfect!

Снимок экрана 2022-05-25 в 14 28 49
ahadtaji21 commented 2 years ago

could you tell what actually changes you have done

ahadtaji21 commented 2 years ago

Yeah! I reread docs again and fix it.

Now it looks perfect! Снимок экрана 2022-05-25 в 14 28 49

could you let me the changes as I'm facing error. I have change in "App Service provider" file

ahadtaji21 commented 2 years ago

I'm facing this error

Undefined property: Illuminate\Pagination\LengthAwarePaginator::$render (View: C:\xampp\htdocs\screening\resources\views\vendor\log-viewer\bootstrap-4\show.blade.php)

ahadtaji21 commented 2 years ago

I also done it creating a simple mistake.

@if ($entries->hasPages())
                    <div class="panel-footer">
                        {!! $entries->appends(compact('query'))->render() !!}

                        <span class="label label-info pull-right">
                            @lang('Page :current of :last', ['current' => $entries->currentPage(), 'last' => $entries->lastPage()])
                        </span>
                    </div>
                @endif

replace your pagination render code.

yi4396 commented 2 years ago

The paginator now uses the Tailwind CSS framework for its default styling. In order to keep using Bootstrap, you should add the following method call to the boot method of your application's AppServiceProvider:

use Illuminate\Pagination\Paginator;

Paginator::useBootstrap();