change default pagination view to default.blade.php
you know laravel uses bootstrap-4.blade.php pagination which resides in Illuminate/pagination/resources/views route as default pagination view. How to change this to its next sibling (default.blade.php)?
However, the easiest way to customize the pagination views is by exporting them to your resources/views/vendor directory using the vendor:publish command:
This command will place the views in the resources/views/vendor/pagination directory. The bootstrap-4.blade.php file within this directory corresponds to the default pagination view. You may edit this file to modify the pagination HTML.
@crnkovic i know this method and no id ont want it. i want it to use default.blade.php as default view. it also says
If you would like to designate a different file as the default pagination view, you may
use the paginator's defaultView and defaultSimpleView methods within your >AppServiceProvider:
use Illuminate\Pagination\Paginator;
public function boot()
{
Paginator::defaultView('pagination::view'); // i did not get what to write inside parentesis
Paginator::defaultSimpleView('pagination::view');
}
however i couldn't understand what to write inside the parenthesis