Skip to content

Commit 7630426

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 7b177e9 + 8b4de67 commit 7630426

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ![Layouts field for MoonShine](https://github.com/moonshine-software/moonshine/raw/2.x/art/lego.png)
2-
## Layouts field for MoonShine - Beta version
2+
## Layouts field for MoonShine
33

44
## Quick start
55

@@ -12,7 +12,7 @@ composer require moonshine/layouts-field
1212
### Usage
1313

1414
Field Layouts for MoonShine allows you to easily manage repeating groups of fields. You will be able to add, delete and sort groups consisting of basic fields.
15-
There are some restrictions on the use of fields in the Layouts field. You can use any basic fields except **Json** and **Relationships** fields.
15+
There are some restrictions on the use of fields in the Layouts field. You can use any basic fields except **Relationships** fields.
1616

1717
```php
1818
use MoonShine\Layouts\Fields\Layouts;

tests/Feature/LayoutsTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ public function it_json_with_image(): void
7373

7474
$this->store($model, $data);
7575

76-
$first = static fn(TestModel $model): array => $model->data->findByName('first')->get('json');
77-
$second = static fn(TestModel $model): array => $model->data->findByName('second')->get('json');
76+
$first = static fn (TestModel $model): array => $model->data->findByName('first')->get('json');
77+
$second = static fn (TestModel $model): array => $model->data->findByName('second')->get('json');
7878

7979
$this->assertEquals(['key 1' => 'value 1', 'key 2' => 'value 2'], $first($model));
8080
$this->assertEquals([['title' => 'Title 1', 'image' => $image->hashName()]], $second($model));
@@ -125,8 +125,8 @@ public function it_with_image(): void
125125

126126
$this->store($model, $data);
127127

128-
$first = static fn(TestModel $model): LayoutItem => $model->data->findByName('first');
129-
$second = static fn(TestModel $model): LayoutItem => $model->data->findByName('second');
128+
$first = static fn (TestModel $model): LayoutItem => $model->data->findByName('first');
129+
$second = static fn (TestModel $model): LayoutItem => $model->data->findByName('second');
130130

131131
$this->assertEquals('First title', $first($model)->get('title'));
132132
$this->assertEquals('Second title', $second($model)->get('title'));

tests/Fixtures/TestResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function fields(): array
2929
]),
3030
Column::make([
3131
Image::make('Image')->removable(),
32-
])
32+
]),
3333
]),
3434
Json::make('Json')->keyValue(),
3535
])->addLayout('second', 'second', [

0 commit comments

Comments
 (0)