app/Repositories/UserRepository.php
// create a new record in the database
create a new record in the database
create a new record in the database
public function create(array $data) {
		$password = base64_encode(openssl_random_pseudo_bytes(8));
		$data['password'] = Hash::make($password);
		return $this->model->create($data);
	}
public function create ( array $ data ) { $ password = base64_encode ( openssl_random_pseudo_bytes ( 8 ) ) ; $ data [ 'password' ] = Hash :: make ( $ password ) ; return $ this -> model -> create ( $ data ) ; }
create a new record in the database
create a new record in the database