src/Commands/AssetCommand.php
public function hasValidNameArgument()
    {
        $name = $this->argument('name');

        if (! Str::contains($name, '/')) {
            $this->error("The name argument expects a vendor and name in 'Composer' format. Here's an example: `vendor/name`.");

            return false;
        }

        return true;
    }
public function hasValidNameArgument()
    {
        $name = $this->argument('name');

        if (! Str::contains($name, '/')) {
            $this->error("The name argument expects a vendor and name in 'Composer' format. Here's an example: `vendor/name`.");

            return false;
        }

        return true;
    }
public function hasValidNameArgument ( ) { $ name = $ this -> argument ( 'name' ) ; if ( ! Str :: contains ( $ name , '/' ) ) { $ this -> error ( "The name argument expects a vendor and name in 'Composer' format. Here's an example: `vendor/name`." ) ; return false ; } return true ; }
Determine if the name argument is valid.

@return bool
Determine if the name argument is valid .