create() 공개 메소드

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