Exemplo n.º 1
0
 /**
  * Get all of the commands with a given name.
  *
  * @param  \Illuminate\Database\Schema\Blueprint  $blueprint
  * @param  string  $name
  * @return array
  */
 protected function getCommandsByName(Blueprint $blueprint, $name)
 {
     return array_filter($blueprint->getCommands(), function ($value) use($name) {
         return $value->name == $name;
     });
 }