app/Http/Controllers/Dashboard/CategoryController.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=DB::table('categories')->get();
       return view('dashboard.categories.add_category',compact('categories'));
    }
public function create ( ) { $ categories = DB :: table ( 'categories' ) -> get ( ) ; return view ( 'dashboard.categories.add_category' , compact ( 'categories' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .