app/Http/Controllers/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()
    {
        self::$viewData["pageTitle"] .= 'Categories';
        self::$viewData["categories"] = Categories::all();
        return view('admin.categories', self::$viewData);
    }
public function index ( ) { self :: $ viewData [ " pageTitle " ] .= 'Categories' ; self :: $ viewData [ " categories " ] = Categories :: all ( ) ; return view ( 'admin.categories' , self :: $ viewData ) ; }
Display a listing of the resource.
Display a listing of the resource .