1 | <?php namespace Arcanedev\LaravelTracker\Models; |
||
11 | abstract class Model extends BaseModel |
||
12 | { |
||
13 | /* ------------------------------------------------------------------------------------------------ |
||
14 | | Constructor |
||
15 | | ------------------------------------------------------------------------------------------------ |
||
16 | */ |
||
17 | /** |
||
18 | * Create a new Eloquent model instance. |
||
19 | * |
||
20 | * @param array $attributes |
||
21 | */ |
||
22 | 6 | public function __construct(array $attributes = []) |
|
29 | |||
30 | /* ------------------------------------------------------------------------------------------------ |
||
31 | | Other Functions |
||
32 | | ------------------------------------------------------------------------------------------------ |
||
33 | */ |
||
34 | /** |
||
35 | * Get the tracker config. |
||
36 | * |
||
37 | * @param string $key |
||
38 | * @param mixed|null $default |
||
39 | * |
||
40 | * @return mixed |
||
41 | */ |
||
42 | 6 | protected function getConfig($key, $default = null) |
|
46 | |||
47 | /* ------------------------------------------------------------------------------------------------ |
||
48 | | Laravel 5.2 & 5.1 Support |
||
49 | | ------------------------------------------------------------------------------------------------ |
||
50 | */ |
||
51 | /** |
||
52 | * Handle dynamic method calls into the model. |
||
53 | * |
||
54 | * @param string $method |
||
55 | * @param array $parameters |
||
56 | * |
||
57 | * @return mixed |
||
58 | */ |
||
59 | 6 | public function __call($method, $parameters) |
|
66 | |||
67 | /** |
||
68 | * Get the first record matching the attributes or create it. |
||
69 | * |
||
70 | * @param array $attributes |
||
71 | * @param array $values |
||
72 | * |
||
73 | * @return self |
||
74 | */ |
||
75 | 4 | public function customFirstOrCreate(array $attributes, array $values = []) |
|
90 | } |
||
91 |