master

laravel/framework

Last updated at: 29/12/2023 09:23

VendorTagPublished.php

TLDR

This file defines a class called VendorTagPublished in the Illuminate\Foundation\Events namespace. The class represents an event that is triggered when a vendor tag is published. The event contains information about the vendor tag and the paths associated with it.

Classes

VendorTagPublished

The VendorTagPublished class represents an event that is triggered when a vendor tag is published. It has the following properties:

  • $tag: The vendor tag that was published.
  • $paths: The publishable paths registered by the tag.

The class has a constructor that accepts the $tag and $paths parameters and initializes the corresponding properties.

<?php

namespace Illuminate\Foundation\Events;

class VendorTagPublished
{
    /**
     * The vendor tag that was published.
     *
     * @var string
     */
    public $tag;

    /**
     * The publishable paths registered by the tag.
     *
     * @var array
     */
    public $paths;

    /**
     * Create a new event instance.
     *
     * @param  string  $tag
     * @param  array  $paths
     * @return void
     */
    public function __construct($tag, $paths)
    {
        $this->tag = $tag;
        $this->paths = $paths;
    }
}