@@ -33,6 +33,7 @@ composer require ghabriel25/laravel-pagination-view
3333## Usage
3434> ** Note:** Don't forget to include the necessary CSS files or link to the relevant CDN in your project to ensure proper styling!
3535>
36+
3637> All published views are located in ` resources/views/vendor/pagination `
3738
3839### [ Fomantic UI] ( https://fomantic-ui.com ) (Semantic UI)
@@ -54,7 +55,23 @@ class AppServiceProvider extends ServiceProvider
5455 }
5556}
5657```
58+ You could also directly use ` Ghabriel\PaginationView\PaginationView ` class
59+ ``` php
60+ <?php
61+
62+ namespace App\Providers;
63+
64+ use Ghabriel\PaginationView\PaginationView;
65+ use Illuminate\Support\ServiceProvider;
5766
67+ class AppServiceProvider extends ServiceProvider
68+ {
69+ public function boot(): void
70+ {
71+ PaginationView::fomanticuiView();
72+ }
73+ }
74+ ```
5875If you want to customize the view,
5976```
6077php artisan vendor:publish --provider=Ghabriel\PaginationView\PaginationViewServiceProvider --tag=pagination-view-fomanticui
@@ -82,7 +99,23 @@ class AppServiceProvider extends ServiceProvider
8299 }
83100}
84101```
102+ You could also directly use ` Ghabriel\PaginationView\PaginationView ` class
103+ ``` php
104+ <?php
105+
106+ namespace App\Providers;
85107
108+ use Ghabriel\PaginationView\PaginationView;
109+ use Illuminate\Support\ServiceProvider;
110+
111+ class AppServiceProvider extends ServiceProvider
112+ {
113+ public function boot(): void
114+ {
115+ PaginationView::bootstrapView();
116+ }
117+ }
118+ ```
86119If you want to customize the view,
87120```
88121php artisan vendor:publish --provider=Ghabriel\PaginationView\PaginationViewServiceProvider --tag=pagination-view-bootstrap
@@ -110,7 +143,23 @@ class AppServiceProvider extends ServiceProvider
110143 }
111144}
112145```
146+ You could also directly use ` Ghabriel\PaginationView\PaginationView ` class
147+ ``` php
148+ <?php
113149
150+ namespace App\Providers;
151+
152+ use Ghabriel\PaginationView\PaginationView;
153+ use Illuminate\Support\ServiceProvider;
154+
155+ class AppServiceProvider extends ServiceProvider
156+ {
157+ public function boot(): void
158+ {
159+ PaginationView::bulmaView();
160+ }
161+ }
162+ ```
114163If you want to customize the view,
115164```
116165php artisan vendor:publish --provider=Ghabriel\PaginationView\PaginationViewServiceProvider --tag=pagination-view-bulma
0 commit comments