Use get() method to grab all categories and output inside another method

You can use wp_pluck_list like so:

wp_pluck_list($recipe_categories, 'name');

Which should return:

array(
    'Bread',
    'Breakfast',
    'Cocktails'
)

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)