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
When you convert a model to an array (or json) and you don't need all meta fields, you can create a model's property to prevent metas from being added to the resulting array.
295
295
You can also use it on eloquent relations.
296
296
297
-
```
297
+
```php
298
298
/* Post model */
299
299
public $hideMeta = true; // Do not add metas to array
0 commit comments