LogViewer icon indicating copy to clipboard operation
LogViewer copied to clipboard

arcanedev logviewer pagination icon twice

Open ahadtaji21 opened this issue 2 years ago • 8 comments

arcanedev logviewer pagination icon twice

Laravel 8 PHP 7.4 bootstrap 4

it is showing twice pagination ico error n

ahadtaji21 avatar May 16 '22 07:05 ahadtaji21

Same issue

Laravel 8 PHP 8.1.3 Bootstrap 4

logs_screenshot2

isudakoff avatar May 25 '22 11:05 isudakoff

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

ahadtaji21 avatar May 25 '22 11:05 ahadtaji21

Yeah! I reread docs again and fix it.

  • Important Note in package docs: https://github.com/ARCANEDEV/LogViewer/blob/master/_docs/1.Installation-and-Setup.md#important-note
  • Laravel Docs: https://laravel.com/docs/8.x/upgrade#pagination-defaults

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

isudakoff avatar May 25 '22 11:05 isudakoff

could you tell what actually changes you have done

ahadtaji21 avatar May 25 '22 12:05 ahadtaji21

Yeah! I reread docs again and fix it.

  • Important Note in package docs: https://github.com/ARCANEDEV/LogViewer/blob/master/_docs/1.Installation-and-Setup.md#important-note
  • Laravel Docs: https://laravel.com/docs/8.x/upgrade#pagination-defaults

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 avatar May 25 '22 12:05 ahadtaji21

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 avatar May 25 '22 12:05 ahadtaji21

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.

ahadtaji21 avatar May 25 '22 12:05 ahadtaji21

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

yi4396 avatar Nov 01 '22 13:11 yi4396