get(); return view('dashbord.dashbord',[ 'customer' =>$customer ]); // } // public function customersData(){ // $customers = Customer::all(); // return view('Admin.all_customers',compact('customers')); // } // public function delete($id) // { // $customer = Customer::find($id); // if($customer->delete()) // { // return redirect()->back()->with(['msg' => 1]); // } // else // { // return redirect()->back()->with(['msg' => 2]); // } } }