Created
April 26, 2017 17:08
-
-
Save Mombuyish/0f0359c122d9fbe152c459628b11a25d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class PostRepository | |
{ | |
protected $model; | |
public function __construct(Post $model) | |
{ | |
$this->model = $model; | |
} | |
public function getAll() | |
{ | |
return $this->model->all(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment