public function addFluentCommands(Grammar $grammar)
    {
        foreach ($this->columns as $column) {
            foreach ($grammar->getFluentCommands() as $commandName) {
                $attributeName = lcfirst($commandName);

                if (! isset($column->{$attributeName})) {
                    continue;
                }

                $value = $column->{$attributeName};

                $this->addCommand(
                    $commandName, compact('value', 'column')
                );
            }
        }
    }
public function addFluentCommands(Grammar $grammar)
    {
        foreach ($this->columns as $column) {
            foreach ($grammar->getFluentCommands() as $commandName) {
                $attributeName = lcfirst($commandName);

                if (! isset($column->{$attributeName})) {
                    continue;
                }

                $value = $column->{$attributeName};

                $this->addCommand(
                    $commandName, compact('value', 'column')
                );
            }
        }
    }
public function addFluentCommands ( Grammar $ grammar ) { foreach ( $ this -> columns as $ column ) { foreach ( $ grammar -> getFluentCommands ( ) as $ commandName ) { $ attributeName = lcfirst ( $ commandName ) ; if ( ! isset ( $ column -> { $ attributeName } ) ) { continue ; } $ value = $ column -> { $ attributeName } ; $ this -> addCommand ( $ commandName , compact ( 'value' , 'column' ) ) ; } } }
Add the fluent commands specified on any columns.

@param  \Illuminate\Database\Schema\Grammars\Grammar  $grammar
@return void
Add the fluent commands specified on any columns .