Hospitality

This is the complete hospitality plugin with booking table, quick reservation and menu features. Manage your restaurant or cafe easily.

Back to Hospitality Support

hambern
hambern
public $belongsTo = [
        'category' => ['Indikator\Hospitality\Models\CategoryFood'],
        'food'     => ['Indikator\Hospitality\Models\Food'],
        'drink'    => ['Indikator\Hospitality\Models\Drink']
    ];

Should of course be:

public $belongsTo = [
        'category' => ['Indikator\Hospitality\Models\Categories'],
        'food'     => ['Indikator\Hospitality\Models\Food'],
        'drink'    => ['Indikator\Hospitality\Models\Drink']
    ];

And it's the same for the drinks. Just a note... Controllers are usually in plural and Models are usually in singular, that way they are more easily separated:

Models\Category
Controllers\Categories

Last updated

gergo85
gergo85

Thank you for your advice. I fixed it too.

1-2 of 2