Modules\Doptor\CompanyInfo\Models\Company::boot PHP Method

boot() public static method

public static boot ( )
    public static function boot()
    {
        parent::boot();
        static::creating(function ($entry) {
            if (!$entry->isValid()) {
                return false;
            }
        });
        static::updating(function ($entry) {
            if (!$entry->isValid()) {
                return false;
            }
        });
    }