podcasts added

This commit is contained in:
Benjamin Takats
2022-12-06 18:17:05 +01:00
parent a520c26dba
commit 85b2856bcd
30 changed files with 910 additions and 24 deletions

View File

@@ -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;

View File

@@ -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()

View File

@@ -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),