app/Http/Controllers/ItemController.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()
    {
        $categoryNameAndItem = ItemCategory::pluck('categoryName','categoryID')->toArray();
        return view('item.create' ,compact($categoryNameAndItem,'categoryNameAndItem'));
    }
public function create ( ) { $ categoryNameAndItem = ItemCategory :: pluck ( 'categoryName' , 'categoryID' ) -> toArray ( ) ; return view ( 'item.create' , compact ( $ categoryNameAndItem , 'categoryNameAndItem' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .