Skip to content

Issues with using concretes instead of using an interface. In this case the repository should be responsible for creating the concrete and not the service. #1

@humblewebdev

Description

@humblewebdev

$newRide = new Ride($passenger, $departure);

Eloquent doesn't pass properties in the constructor but your service requires it.

$flight = new Flight;
$flight->name = $request->name;
$flight->save();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions