Prepping for launch. Reviewed-on: #1 Co-authored-by: Paul Couture <paul@paulcouture.com> Co-committed-by: Paul Couture <paul@paulcouture.com>
		
			
				
	
	
		
			30 lines
		
	
	
		
			644 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			644 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Providers;
 | |
| 
 | |
| use Illuminate\Support\ServiceProvider;
 | |
| use Illuminate\Pagination\Paginator;
 | |
| use Illuminate\Support\Facades\View;
 | |
| use App\Models\Podcast;
 | |
| 
 | |
| class AppServiceProvider extends ServiceProvider
 | |
| {
 | |
|     /**
 | |
|      * Register any application services.
 | |
|      */
 | |
|     public function register(): void
 | |
|     {
 | |
|         //
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * Bootstrap any application services.
 | |
|      */
 | |
|     public function boot(): void
 | |
|     {
 | |
|         Paginator::useBootstrapFive();
 | |
|         $publishedPodcasts = Podcast::where('published', true)->select(['name', 'slug'])->get();
 | |
|         View::share(['navPodcasts' => $publishedPodcasts]);
 | |
|     }
 | |
| }
 |