mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
podcasts added
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Models\Episode;
|
||||
use App\Observers\EpisodeObserver;
|
||||
use App\Support\Carbon;
|
||||
use Illuminate\Support\Facades\Date;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
@@ -2,17 +2,15 @@
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Observers\EventObserver;
|
||||
use App\Observers\EpisodeObserver;
|
||||
use Illuminate\Auth\Events\Registered;
|
||||
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
|
||||
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
||||
use Illuminate\Support\Facades\Event;
|
||||
|
||||
class EventServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* The event to listener mappings for the application.
|
||||
*
|
||||
* @var array<class-string, array<int, class-string>>
|
||||
*/
|
||||
protected $listen = [
|
||||
@@ -23,17 +21,15 @@ class EventServiceProvider extends ServiceProvider
|
||||
|
||||
/**
|
||||
* Register any events for your application.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
\App\Models\Event::observe(EventObserver::class);
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if events and listeners should be automatically discovered.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function shouldDiscoverEvents()
|
||||
|
||||
@@ -7,11 +7,13 @@ use App\Nova\City;
|
||||
use App\Nova\Country;
|
||||
use App\Nova\Course;
|
||||
use App\Nova\Dashboards\Main;
|
||||
use App\Nova\Episode;
|
||||
use App\Nova\Event;
|
||||
use App\Nova\Lecturer;
|
||||
use App\Nova\Library;
|
||||
use App\Nova\LibraryItem;
|
||||
use App\Nova\Participant;
|
||||
use App\Nova\Podcast;
|
||||
use App\Nova\Registration;
|
||||
use App\Nova\Tag;
|
||||
use App\Nova\Team;
|
||||
@@ -59,6 +61,13 @@ class NovaServiceProvider extends NovaApplicationServiceProvider
|
||||
->icon('library')
|
||||
->collapsable(),
|
||||
|
||||
MenuSection::make('Podcasts', [
|
||||
MenuItem::resource(Podcast::class),
|
||||
MenuItem::resource(Episode::class),
|
||||
])
|
||||
->icon('microphone')
|
||||
->collapsable(),
|
||||
|
||||
MenuSection::make('Admin', [
|
||||
MenuItem::resource(Category::class),
|
||||
MenuItem::resource(Country::class),
|
||||
|
||||
Reference in New Issue
Block a user