addGroup() публичный Метод

Add a group in the db.
public addGroup ( $name ) : Model | static
$name
Результат Illuminate\Database\Eloquent\Model | static
Пример #1
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function fire()
 {
     $nameGroup = $this->argument('name');
     if (!$this->notifynderGroup->addGroup($nameGroup)) {
         $this->error('The name must be a string with dots as namespaces');
         return false;
     }
     $this->info("Group {$nameGroup} has Been created");
 }