You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fields.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ It may happen that the attribute does not exists on the model that matches with
56
56
57
57
```php
58
58
use Cone\Root\Fields\Text;
59
-
use Illuminate\Databsase\Eloquent\Model;
59
+
use Illuminate\Database\Eloquent\Model;
60
60
use Illuminate\Http\Request;
61
61
62
62
Text::make('Title')
@@ -73,7 +73,7 @@ You may define custom value formatters for the field values. In that case you ca
73
73
74
74
```php
75
75
use Cone\Root\Fields\Number;
76
-
use Illuminate\Databsase\Eloquent\Model;
76
+
use Illuminate\Database\Eloquent\Model;
77
77
use Illuminate\Http\Request;
78
78
use Illuminate\Support\Number;
79
79
@@ -85,14 +85,14 @@ Number::make('Price')
85
85
86
86
### Value Hydration
87
87
88
-
You may define custom value hydration logic on your field clasas. To do so, you can easily override the default `hydrate` method:
88
+
You may define custom value hydration logic on your field class. To do so, you can easily override the default `hydrate` method:
89
89
90
90
```php
91
91
namespace App\Root\Fields;
92
92
93
93
use Cone\Root\Fields\Field;
94
94
use Illuminate\Http\Request;
95
-
use Illuminate\Databsase\Eloquent\Model;
95
+
use Illuminate\Database\Eloquent\Model;
96
96
97
97
class CustomField extends Field
98
98
{
@@ -256,7 +256,7 @@ $field->cols(100);
256
256
257
257
### Relation Fields
258
258
259
-
Relation fields are represanting Eloquent relation definitions on the resource models. Relation fields are highly customizable and provide a nice and detailed API.
259
+
Relation fields are representing Eloquent relation definitions on the resource models. Relation fields are highly customizable and provide a nice and detailed API.
0 commit comments