'i used laravel pagination links, but i got big icos. < > call in tailwind css code
Hello $data = User::paginate(5); return view('users',compact('data')); {!! $data->links() !!}
Solution 1:[1]
app\Providers\AppServiceProvider.php
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Pagination\Paginator;
class AppServiceProvider extends ServiceProvider
{
public function register()
{
//
}
public function boot()
{
Paginator::useBootstrap();
}
}
Solution 2:[2]
Laravel uses tailwind JIT mode which imports (when you run npm run dev) required classes when they are needed, the pagination is not included in your HTML explicitly with links() so I believe required classes are not included
in the file tailwind.config.js, make sure that all the following are included in content:[]
content: [
'./resources/**/*.blade.php',
'./resources/**/*.js',
'./resources/**/*.vue',
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
],
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | xashm |
