app/Http/Controllers/Panel/SubcategoriesController.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()
    {
        $c = Category::all(['id', 'name']);
        return view('panel.subcategories.create')->with(['category' => $c]);
    }
public function create ( ) { $ c = Category :: all ( [ 'id' , 'name' ] ) ; return view ( 'panel.subcategories.create' ) -> with ( [ 'category' => $ c ] ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .