app/Http/Controllers/admin/OrdersController.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()
    {   
        $users = Users::all();
        return view('admin.orders.create',['title'=>'订单添加','users'=>$users]);
    }
public function create ( ) { $ users = Users :: all ( ) ; return view ( 'admin.orders.create' , [ 'title' => '订单添加','users' = >$users ]) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .
//查询所有用户 // dd($users); //显示订单添加页面