Fenos\Notifynder\Contracts\NotifynderGroup::addGroup PHP Method

addGroup() public method

Add a group in the db.
public addGroup ( $name ) : Model | static
$name
return Illuminate\Database\Eloquent\Model | static
    public function addGroup($name);

Usage Example

Esempio n. 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");
 }