Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace App\Http\Controllers;
- use Illuminate\Http\Request;
- use DB;
- class AdminController extends Controller
- {
- public function index(){
- return view('admin_login');
- }
- public function show_dashboard(){
- return view('admin.dashboard');
- }
- public function dashboard(Request $request){
- $admin_email = $request->admin_email;
- $admin_password = md5($request->admin_password);
- $user = DB::table('tbl_admin')->where('admin_email', $admin_email)->first();
- // $user = DB::table('tbl_admin')->where([
- // ['admin_email', '=', $admin_email],
- // ['admin_password', '=', $admin_password]
- // ])->first();
- // $user = DB::table('tbl_admin')->where('admin_email','abiruzzaman.molla@gmail.com')->where('admin_password', '81dc9bdb52d04dc20036dbd8313ed055')->first();
- // echo $admin_email .'</br>';
- // echo $admin_password .'</br>';
- // echo $user->admin_name .'</br>';
- // echo $user->admin_phone .'</br>';
- var_dump($user->email);
- exit();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement