app/Http/Controllers/admin/GoodsController.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()
    {
        return view('admin.goods.create',['title'=>'商品添加','data'=>self::getcates()]);
    }
public function create ( ) { return view ( 'admin.goods.create' , [ 'title' => '商品添加','data'= > self:: ge tcat es ()]); }
Show the form for creating a new resource.
Show the form for creating a new resource .
// dump($data);