App\Http\Controllers\API\ChatController::channels PHP Метод

channels() публичный Метод

public channels ( )
    public function channels()
    {
        $channels = Channel::where('type', 'Public')->get();
        return json_collection($channels, new ChannelTransformer());
    }