master

laravel/framework

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

NoPendingMigrations.php

TLDR

This file defines the NoPendingMigrations class in the Illuminate\Database\Events namespace. The class is used to create an event instance when there are no pending migrations.

Classes

NoPendingMigrations

The NoPendingMigrations class represents an event instance when there are no pending migrations. It has the following attributes:

  • $method: The migration method that was called.

It also has the following methods:

  • __construct($method): Initializes an instance of the NoPendingMigrations class with the provided $method.
<?php

namespace Illuminate\Database\Events;

class NoPendingMigrations
{
    /**
     * The migration method that was called.
     *
     * @var string
     */
    public $method;

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