Fenos\Notifynder\Contracts\NotifynderCategory::add PHP Méthode

add() public méthode

Add a category to the DB.
public add ( $name, $text ) : NotificationCategory
$name
$text
Résultat Fenos\Notifynder\Models\NotificationCategory
    public function add($name, $text);

Usage Example

 /**
  * Add a category
  *
  * @param $name
  * @param $text
  * @return static
  */
 public function addCategory($name, $text)
 {
     return $this->notifynderCategory->add($name, $text);
 }