app/Http/Controllers/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()
    {
        $positions = Positions::all();
        $contracts = Contracts::all();
        $rankings = Rankings::all();
        $status = Status::all();
        $levels = Levels::all();
        return view('user.user_form',[
            'user' => new Users(),
            'rankings' => $rankings,
            'positions' => $positions,
            'status' => $status,
            'contracts' => $contracts,
            'levels' => $levels,
            ]);
    }
public function create ( ) { $ positions = Positions :: all ( ) ; $ contracts = Contracts :: all ( ) ; $ rankings = Rankings :: all ( ) ; $ status = Status :: all ( ) ; $ levels = Levels :: all ( ) ; return view ( 'user.user_form' , [ 'user' => new Users ( ) , 'rankings' => $ rankings , 'positions' => $ positions , 'status' => $ status , 'contracts' => $ contracts , 'levels' => $ levels , ] ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .
// dd($levels->leavel); // return view('user.user_form',['user'=> new Users()]);