app/Http/Controllers/SubCategoryController.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()
    {   
        $categoryLists = Category::get(['id','name']);
        return view('sub_category.create')->with('categoryLists',$categoryLists);
    }
public function create ( ) { $ categoryLists = Category :: get ( [ 'id' , 'name' ] ) ; return view ( 'sub_category.create' ) -> with ( 'categoryLists' , $ categoryLists ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .