- Save the
helpers.php
file in yourapp
directory - Edit your
composer.json
manifest file to auloload this file:
"autoload": {
"files": [
"app/helpers.php"
],
// ...
- Execute the
composer dump
command to update the autoloaded files - Execute the
php artisan vendor:publish --tag=laravel-pagination
command to publish the pagination views - Save the
custom.blade.php
file in theresources/views/vendor/pagination
directory - Use it like that:
User::paginate(10)->links('pagination::custom')