Skip to content

Question: function in repository but not in interface #32

Open
@dabernathy89

Description

@dabernathy89

So I'm still learning about interfaces and using the repository pattern in Laravel. My question is whether the controller should be calling a method on the repository that is not present on that repository's interface. For example, in the UserTricksController, we call getEditForm on the Trick repository (line 122):

$form  = $this->trick->getEditForm($trick->id);

The getEditForm method is not present on the TrickRepositoryInterface, however, but it is on the TrickRepository.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions