| 1 |
<?php |
| 2 |
|
| 3 |
namespace Illuminate\Pagination; |
| 4 |
|
| 5 |
use Illuminate\Support\ServiceProvider; |
| 6 |
|
| 7 |
class PaginationServiceProvider extends ServiceProvider |
| 8 |
{ |
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
public function boot() |
| 15 |
{ |
| 16 |
$this->loadViewsFrom(__DIR__.'/resources/views', 'pagination'); |
| 17 |
|
| 18 |
if ($this->app->runningInConsole()) { |
| 19 |
$this->publishes([ |
| 20 |
__DIR__.'/resources/views' => $this->app->resourcePath('views/vendor/pagination'), |
| 21 |
], 'laravel-pagination'); |
| 22 |
} |
| 23 |
} |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
public function register() |
| 31 |
{ |
| 32 |
PaginationState::resolveUsing($this->app); |
| 33 |
} |
| 34 |
} |