Supported Versions: PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
Finds whether a variable is null
<?php is_null(mixed $value): bool
<?php     public function config($key = null, $default = null)

    {

        if (is_null($key)) {

            return $this->config;

        }
<?php         $config = $this->getConfig($driver);



        if (is_null($config)) {

            throw new InvalidArgumentException($this->invalidImplementationMessage($driver));

        }
<?php     {

        $value = Arr::get($this->meta(), $key);



        if (! is_null($value)) {

            return $value;

        }
<?php     public function model(Model $model = null)

    {

        if (is_null($model)) {

            return $this->model;

        }
<?php     public function roles($roles = null)

    {

        return is_null($roles)

            ? $this->getRoles()

            : $this->setRoles($roles);

    }
<?php     public function groups($groups = null)

    {

        return is_null($groups)

            ? $this->getGroups()

            : $this->setGroups($groups);

    }
<?php     protected function getOrSet($key, $value = null)

    {

        if (is_null($value)) {

            return $this->get($key);

        }
<?php     {

        $value = $this->model()->$key;



        return is_null($value) ? $default : $value;

    }



    public function value($key)
<?php     public function title(string $title = null)

    {

        if (is_null($title)) {

            return $this->title;

        }
<?php     public function permissions($permissions = null)

    {

        if (is_null($permissions)) {

            return $this->permissions;

        }
<?php     public function roles($roles = null)

    {

        return is_null($roles)

            ? $this->getRoles()

            : $this->set('roles', $roles);

    }
<?php     public function groups($groups = null)

    {

        return is_null($groups)

            ? $this->getGroups()

            : $this->setGroups($groups);

    }
<?php     public function handle(string $handle = null)

    {

        if (is_null($handle)) {

            return $this->handle;

        }
<?php             ->merge($parts)

            ->flatten()

            ->reject(function ($part) {

                return is_null($part);

            })

            ->all();

    }
<?php     public function throwOnFailure($throwOnFailure = null)

    {

        $this->throwOnFailure = is_null($throwOnFailure)

            ? true

            : $throwOnFailure;