laravel/framework

View on GitHub
src/Illuminate/Foundation/Console/stubs/channel.stub

Summary

Maintainability
Test Coverage
<?php

namespace {{ namespace }};

use {{ namespacedUserModel }};

class {{ class }}
{
    /**
     * Create a new channel instance.
     */
    public function __construct()
    {
        //
    }

    /**
     * Authenticate the user's access to the channel.
     */
    public function join({{ userModel }} $user): array|bool
    {
        //
    }
}