app/Http/Controllers/Backend/BackendCategoryController.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()
    {
        $categories_tree = $this->categories->listTreeCategories();
        if($categories_tree>0) {
            $categories = $this->categories->linearizeCategoryArray($categories_tree);
        }
        return view('backend.categories.create',compact('categories'));
    }
public function create ( ) { $ categories_tree = $ this -> categories -> listTreeCategories ( ) ; if ( $ categories_tree > 0 ) { $ categories = $ this -> categories -> linearizeCategoryArray ( $ categories_tree ) ; } return view ( 'backend.categories.create' , compact ( 'categories' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .