Skip to content

Commit

Permalink
Merge pull request #5 from envor/main
Browse files Browse the repository at this point in the history
coding style
  • Loading branch information
inmanturbo committed Feb 19, 2024
2 parents 03fd047 + d952076 commit 91849d2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

All notable changes to `laravel-datastore` will be documented in this file.

## v1.2.1 - 2024-02-19

### What's Changed

* env in config by @inmanturbo in https://github.com/envor/laravel-datastore/pull/4

**Full Changelog**: https://github.com/envor/laravel-datastore/compare/v1.2.0...v1.2.1

## v1.2.0 - 2024-02-19

### What's Changed
Expand Down
3 changes: 2 additions & 1 deletion src/Concerns/HasDatastores.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
namespace Envor\Datastore\Concerns;

use Envor\Datastore\Models\Datastore;
use Illuminate\Database\Eloquent\Relations\MorphMany;

trait HasDatastores
{
public function datastores()
public function datastores(): MorphMany
{
return $this->morphMany(Datastore::class, 'owner');
}
Expand Down

0 comments on commit 91849d2

Please sign in to comment.