1<?php
2//Array & JSON Casting
3namespace App;
4
5use Illuminate\Database\Eloquent\Model;
6
7class User extends Model
8{
9 /**
10 * The attributes that should be cast.
11 *
12 * @var array
13 */
14 protected $casts = [
15 'options' => 'array',
16 ];
17}
18namespace App;
19
20use Illuminate\Database\Eloquent\Model;
21
22class User extends Model
23{
24 /**
25 * The attributes that should be cast.
26 *
27 * @var array
28 */
29 protected $casts = [
30 'options' => 'array',
31 ];
32}