@Slothlike hi, you will need to make the following changes in your App\Providers\AppServiceProvider to make it work automatically:
<?php
namespace App\Providers;
use Illuminate\Pagination\Paginator;
use Illuminate\Support\ServiceProvider;
use Illuminate\Pagination\BootstrapFourPresenter;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Paginator::presenter(function($paginator) {
return new BootstrapFourPresenter($paginator);
});
}
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
}
Now next time whenever you will paginate a model the BootstrapFourPresenter will be automatically used as the default presenter for the pagination links.
Usman.