create() public méthode

If a config variable is not set, the default value will be used.
public create ( $p_name = null, $p_configVars = [] ) : boolean
$p_configVars The privileges list to be granted
Résultat boolean TRUE on success, FALSE on failure
Exemple #1
0
 public function run()
 {
     DB::table('usertypes')->delete();
     UserType::create(array('description' => 'Atleta'));
     UserType::create(array('description' => 'Psicólogo'));
 }