app/Http/Controllers/Admin/userController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create()
    {
        $user = User::all();
        $staff = Staff::all();
        $customer = Customer::all();
        $vendor = Vendor::all();
        $department = Department::all();
        $student = Student::all();
        $teacher = Teacher::all();
        $role = Roles::all();
        return view('Admin.User.add',compact('user','staff','customer','vendor','department','student','teacher','role'));
    }
public function create ( ) { $ user = User :: all ( ) ; $ staff = Staff :: all ( ) ; $ customer = Customer :: all ( ) ; $ vendor = Vendor :: all ( ) ; $ department = Department :: all ( ) ; $ student = Student :: all ( ) ; $ teacher = Teacher :: all ( ) ; $ role = Roles :: all ( ) ; return view ( 'Admin.User.add' , compact ( 'user' , 'staff' , 'customer' , 'vendor' , 'department' , 'student' , 'teacher' , 'role' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .