File "MakeStorableEventCommand.php"

Full Path: /var/www/html/back/vendor/spatie/laravel-event-sourcing/src/Console/MakeStorableEventCommand.php
File size: 508 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Spatie\EventSourcing\Console;

use Illuminate\Console\GeneratorCommand;

class MakeStorableEventCommand extends GeneratorCommand
{
    protected $name = 'make:storable-event';

    protected $description = 'Create a storable event';

    protected $type = 'Domain event';

    protected function getStub()
    {
        return __DIR__.'/../../stubs/event.stub';
    }

    protected function getDefaultNamespace($rootNamespace)
    {
        return $rootNamespace.'\StorableEvents';
    }
}