1 | <?php |
||
12 | class ModelConfig implements Arrayable, Jsonable, JsonSerializable |
||
|
|||
13 | { |
||
14 | use HasAttributesTrait; |
||
15 | |||
16 | protected $configFactory; |
||
17 | /** |
||
18 | * @var \Illuminate\Database\Eloquent\Model |
||
19 | */ |
||
20 | protected $model; |
||
21 | |||
22 | public function __construct(ConfigContract $factory, Model $model) |
||
27 | |||
28 | public function paginate($perPage = null) |
||
33 | |||
34 | public function get() |
||
39 | |||
40 | /** |
||
41 | * Handle dynamic method calls into the model. |
||
42 | * |
||
43 | * @param string $method |
||
44 | * @param array $parameters |
||
45 | * @return mixed |
||
46 | */ |
||
47 | public function __call($method, $parameters) |
||
52 | |||
53 | /** |
||
54 | * Handle dynamic static method calls into the method. |
||
55 | * |
||
56 | * @param string $method |
||
57 | * @param array $parameters |
||
58 | * @return mixed |
||
59 | */ |
||
60 | public static function __callStatic($method, $parameters) |
||
64 | } |
||
65 |