public function created(Events\Created $event): bool
    {
        if (config('tenancy.website.auto-create-tenant-directory')) {
            $stat = $this->filesystem()->makeDirectory($event->website->uuid);

            if ($stat) {
                $this->emitEvent(
                    new DirectoryCreated($event->website, $this->filesystem())
                );
            }

            return $stat;
        }

        return true;
    }
public function created(Events\Created $event): bool
    {
        if (config('tenancy.website.auto-create-tenant-directory')) {
            $stat = $this->filesystem()->makeDirectory($event->website->uuid);

            if ($stat) {
                $this->emitEvent(
                    new DirectoryCreated($event->website, $this->filesystem())
                );
            }

            return $stat;
        }

        return true;
    }
public function created ( Events \ Created $ event ) : bool { if ( config ( 'tenancy.website.auto-create-tenant-directory' ) ) { $ stat = $ this -> filesystem ( ) -> makeDirectory ( $ event -> website -> uuid ) ; if ( $ stat ) { $ this -> emitEvent ( new DirectoryCreated ( $ event -> website , $ this -> filesystem ( ) ) ) ; } return $ stat ; } return true ; }
Mutates the service based on a website being enabled.

@param Events\Created $event
@return bool
Mutates the service based on a website being enabled .