This is my event class when i use
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array
*/
protected $listen = [
Registered::class => [
SendEmailVerificationNotification::class,
],
CategoryEvent::class => [
CategoryCreatedListener::class,
]
];
when i runs the following command
php artisan event:generate
it creates the event and listener both in the service provider directory if I put namespace before the event and listener like
App\Events\CategoryEvent::class
It still creates App\Event and App\Event in Service Provider Directory how to Create the Event and Listener Directory up in the App Namespace.