'teacher@example.com'], //// [ //// 'name' => 'teacher', //// 'password' => bcrypt('teacher'), //// ] //// ); //// // $birthDate = explode('-', $data['birth_date']); // // // $password = join("", $birthDate) . '-' . $data['nis']; // // $add = [ // 'email' => $data['email'], // 'name' => $data['parent_name'], // 'password' => $password, // ]; // // dd($add); // die; // // $exists = Student::where('name', $data['name']) // ->exists(); // // if ($exists) { // Notification::make() // ->title('Failed to save') // ->body('A record already exists.') // ->danger() // ->send(); // // $this->halt(); // Stop the save process // } // // return $data; // } }