app/Http/Controllers/News/CategoryController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $categories = Category::all();
        return view('news.categories.index',
			[
				'categories' => $categories
			]);
    }
public function index ( ) { $ categories = Category :: all ( ) ; return view ( 'news.categories.index' , [ 'categories' => $ categories ] ) ; }
Display a listing of the resource.
Display a listing of the resource .