1use Illuminate\Support\Facades\DB;//use it above
2use Illuminate\Support\Facades\Hash; //Hash for password || use it above
3
4public function create(Request $request)
5 {
6 DB::table('students')->insert([
7 'email' => $request->email,
8 'password' => Hash::make($request->password),
9 'address' => $request->address,
10 'address2' => $request->address2,
11 'city' => $request->city,
12 'country' => $request->country,
13 'zip' => $request->zip,
14 ]);
15 return redirect('create');
16 }