Skip to content

Commit

Permalink
wip [skip-ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangjchandler committed Mar 21, 2021
1 parent 5336eb7 commit 8412149
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/Concerns/Orbital.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@ public static function bootOrbital()
(new static)->migrate();
}

static::updating(function (Model $model) {
static::created(function (Model $model) {
return Orbit::driver(static::getOrbitalDriver())->save(
$model,
static::getOrbitalPath()
);
});

static::updated(function (Model $model) {
return Orbit::driver(static::getOrbitalDriver())->save(
$model,
static::getOrbitalPath()
Expand Down
2 changes: 1 addition & 1 deletion src/Drivers/Markdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function save(Model $model, string $directory): bool

file_put_contents($path, $contents);

return false;
return true;
}

public function all(string $directory): Collection
Expand Down

0 comments on commit 8412149

Please sign in to comment.