public function __construct(PostRepository $post) { parent::__construct(); $this->storage = storage_path('app/posts'); $this->post = $post; }