app/Http/Controllers/Api/CategoryController.php
/**
     * Display a listing of the Category.
     *
     * @return
     */
Display a listing of the Category.
@return
Display a listing of the Category . @return
public function index()
    {
         $categories = Category::paginate(5);
        return $categories ;
    }
public function index ( ) { $ categories = Category :: paginate ( 5 ) ; return $ categories ; }
Display a listing of the Category.
Display a listing of the Category .