filled

The filled function determines whether the given value is not "blank":
<?php filled(0);
filled(true);
filled(false);


filled('');
filled('   ');
filled(null);
filled(collect());
<?php         foreach ($this->getFormObjects() as $form) {

            try {


                if (filled($form->getRules())) {

                    $cumulativeData = array_merge($cumulativeData, $validateForm($form));

                }

            } catch (ValidationException $e) {
<?php             $address = json_encode($address);

        }



        if (filled($name)) {

            $address .= ' ('.$name.')';

        }
<?php     function transform($value, callable $callback, $default = null)

    {

        if (filled($value)) {

            return $callback($value);

        }
<?php     public function testFilled()

    {

        $this->assertFalse(filled(null));

        $this->assertFalse(filled(''));

        $this->assertFalse(filled('  '));

        $this->assertTrue(filled(10));
<?php     public function testFilled()

    {

        $this->assertFalse(filled(null));

        $this->assertFalse(filled(''));

        $this->assertFalse(filled('  '));

        $this->assertTrue(filled(10));

        $this->assertTrue(filled(true));
<?php     {

        $this->assertFalse(filled(null));

        $this->assertFalse(filled(''));

        $this->assertFalse(filled('  '));

        $this->assertTrue(filled(10));

        $this->assertTrue(filled(true));

        $this->assertTrue(filled(false));
<?php         $this->assertFalse(filled(null));

        $this->assertFalse(filled(''));

        $this->assertFalse(filled('  '));

        $this->assertTrue(filled(10));

        $this->assertTrue(filled(true));

        $this->assertTrue(filled(false));

        $this->assertTrue(filled(0));
<?php         $this->assertFalse(filled(''));

        $this->assertFalse(filled('  '));

        $this->assertTrue(filled(10));

        $this->assertTrue(filled(true));

        $this->assertTrue(filled(false));

        $this->assertTrue(filled(0));

        $this->assertTrue(filled(0.0));
<?php         $this->assertFalse(filled('  '));

        $this->assertTrue(filled(10));

        $this->assertTrue(filled(true));

        $this->assertTrue(filled(false));

        $this->assertTrue(filled(0));

        $this->assertTrue(filled(0.0));
<?php         $this->assertTrue(filled(10));

        $this->assertTrue(filled(true));

        $this->assertTrue(filled(false));

        $this->assertTrue(filled(0));

        $this->assertTrue(filled(0.0));



        $object = new SupportTestCountable();
<?php         $this->assertTrue(filled(true));

        $this->assertTrue(filled(false));

        $this->assertTrue(filled(0));

        $this->assertTrue(filled(0.0));



        $object = new SupportTestCountable();

        $this->assertFalse(filled($object));
<?php         $this->assertTrue(filled(0.0));



        $object = new SupportTestCountable();

        $this->assertFalse(filled($object));

    }



    public function testValue()