master

laravel/framework

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

MissingValue.php

TLDR

This file defines the MissingValue class in the Illuminate\Http\Resources namespace. The MissingValue class implements the PotentiallyMissing interface and has a single method isMissing().

Classes

MissingValue

The MissingValue class is a part of the Illuminate\Http\Resources namespace. It implements the PotentiallyMissing interface. This class has a single method:

isMissing()

The isMissing() method is used to determine if the object should be considered "missing". It returns a boolean value.

<?php

namespace Illuminate\Http\Resources;

class MissingValue implements PotentiallyMissing
{
    /**
     * Determine if the object should be considered "missing".
     *
     * @return bool
     */
    public function isMissing()
    {
        return true;
    }
}