create() public method

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
return boolean TRUE on success, FALSE on failure
Esempio n. 1
0
 public function run()
 {
     DB::table('usertypes')->delete();
     UserType::create(array('description' => 'Atleta'));
     UserType::create(array('description' => 'Psicólogo'));
 }