Mpociot\Teamwork\TeamworkTeam::__construct PHP Метод

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

Creates a new instance of the model.
public __construct ( array $attributes = [] )
$attributes array
    public function __construct(array $attributes = [])
    {
        parent::__construct($attributes);
        $this->table = Config::get('teamwork.teams_table');
    }

Usage Example

Пример #1
0
 public function __construct(array $attributes = [])
 {
     parent::__construct($attributes);
     if (empty($attributes['slug']) && !empty($attributes['name'])) {
         $attributes['slug'] = \Slugify::slugify($attributes['name']);
     }
 }
TeamworkTeam