Comments (4)
Hello,
Thank you for using creative TIM!
You should be able to find what you need in the original code of the template. You can find the pagination that works here --> https://www.creative-tim.com/live/argon-dashboard-pro-laravel
Best.
from ct-argon-dashboard-pro-laravel.
The pagination exists in form of HTML not in laravel way of implementation
from ct-argon-dashboard-pro-laravel.
Now the project is using the pagination from Datatables Bootstrap5 as you can see in the index.blade.php of category, tag, user, item and role files. To change to Laravel pagination you will need to follows some steps:
- In app/Providers/AppServiceProvider.php add at the top of the file
use Illuminate\Pagination\Paginator;
and in the function boot add this change
public function boot()
{
Paginator::useBootstrap();
}
-
For your table, go to the controller associated with it, for example if I want to add Laravel pagination to User table you will got to app/Http/Controllers/UserController and in the funtion index I will make the update to
public function index(User $model)
{
$this->authorize('manage-users', User::class);
return view('laravel.users.index', ['users' => $model->paginate(5)]);
} -
Now you can go to your table in resources/laravel/users/index.blade.php and add after you closing tab for
{{ $users->links() }} -
In the same resources/laravel/users/index.blade.php file, where the @Push('js') takes place you will need to remove the pagination from the Datatable Bootstrap 5 by adding paging: false`` like this
<script> const dataTableBasic = new simpleDatatables.DataTable("#datatable-basic", { searchable: false, fixedHeight: true, paging: false, columns: [{ select: [2], sortable: false }] }); </script>Let us know if that helps.
from ct-argon-dashboard-pro-laravel.
It works thanks you very much
from ct-argon-dashboard-pro-laravel.
Related Issues (20)
- User cannot change his password in profile's settings HOT 4
- Page flickers on every load HOT 7
- The Argon Datatables is not Responsive like Material Datatables [Premium Support] HOT 1
- No validation for image upload on user profile HOT 3
- Truly Laravel 8 with Breeze and / or Jetstream HOT 1
- npm run production fails -> 100% - $icon-size-xl - 1 HOT 2
- How can I use the ajax call? HOT 3
- Sidebar Animation HOT 3
- Others Theme? HOT 3
- Range slider Result HOT 2
- Hi, I just can't figure out how to use full calendar. would you have a simple example with controller on how to view and add events? Thanks HOT 3
- Extend Edit and Delete feature to a new custom feature (Customers) HOT 8
- Horizontal scroll bar at the bottom of the page HOT 4
- Seeder Problems HOT 4
- How to work with fullcalendar HOT 1
- [Bug] El boton File browser no se visualiza que documento se sube HOT 4
- Primary color
- css and js not loading HOT 4
- Update to latest laravel [premium support] HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ct-argon-dashboard-pro-laravel.