File tree Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Original file line number Diff line number Diff line change 1212 */
1313trait ElasticquentTrait
1414{
15- use ElasticquentClientTrait;
15+ use ElasticquentClientTrait, EloquentMethods ;
1616
1717 /**
1818 * Uses Timestamps In Index
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Elasticquent ;
4+
5+ trait EloquentMethods
6+ {
7+ /**
8+ * Convert the model instance to an array.
9+ */
10+ abstract public function toArray ();
11+
12+ /**
13+ * Get the value of the model's primary key.
14+ */
15+ abstract public function getKey ();
16+
17+ /**
18+ * Get the table associated with the model.
19+ */
20+ abstract public function getTable ();
21+
22+ /**
23+ * Create a new instance of the given model.
24+ *
25+ * @param array $attributes
26+ * @param bool $exists
27+ */
28+ abstract public function newInstance ($ attributes =[], $ exists = false );
29+
30+ /**
31+ * Get a new query builder for the model's table.
32+ */
33+ abstract public function newQuery ();
34+ }
You can’t perform that action at this time.
0 commit comments