public function getRelist($itemId)
    {
        $item = Item::findOrFail($itemId);

        Session::forget('photos');

        foreach ($item->photos as $photo) {
            Session::push('photos', [
                'real_path' => $photo->getPath(),
                'filename'  => $photo->photoId,
            ]);
        }

        $categories = Category::leaves()->orderBy('category_id')->get();

        return view('mustard::item.new', [
            'item'       => $item,
            'categories' => $categories,
        ]);
    }
public function getRelist($itemId)
    {
        $item = Item::findOrFail($itemId);

        Session::forget('photos');

        foreach ($item->photos as $photo) {
            Session::push('photos', [
                'real_path' => $photo->getPath(),
                'filename'  => $photo->photoId,
            ]);
        }

        $categories = Category::leaves()->orderBy('category_id')->get();

        return view('mustard::item.new', [
            'item'       => $item,
            'categories' => $categories,
        ]);
    }
public function getRelist ( $ itemId ) { $ item = Item :: findOrFail ( $ itemId ) ; Session :: forget ( 'photos' ) ; foreach ( $ item -> photos as $ photo ) { Session :: push ( 'photos' , [ 'real_path' => $ photo -> getPath ( ) , 'filename' => $ photo -> photoId , ] ) ; } $ categories = Category :: leaves ( ) -> orderBy ( 'category_id' ) -> get ( ) ; return view ( 'mustard::item.new' , [ 'item' => $ item , 'categories' => $ categories , ] ) ; }
Return the relist item view.

@param int $itemId

@return \Illuminate\View\View
Return the relist item view .