Skip to content

Commit 58f0119

Browse files
committed
Update Model Repository Contract
- Remove jsonSerialize - Remove getRouteKey - Remove getRouteKeyName - Remove resolveRouteBinding
1 parent 095d816 commit 58f0119

File tree

1 file changed

+4
-25
lines changed

1 file changed

+4
-25
lines changed

src/Contracts/Model.php

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -57,33 +57,12 @@ public function update(array $attributes = []);
5757
public function delete($id);
5858

5959
/**
60-
* Get the value of the model's route key.
60+
* Destroy the models for the given IDs.
6161
*
62-
* @return mixed
62+
* @param \Illuminate\Support\Collection|array|int $ids
63+
* @return int
6364
*/
64-
public function getRouteKey();
65-
66-
/**
67-
* Get the route key for the model.
68-
*
69-
* @return string
70-
*/
71-
public function getRouteKeyName();
72-
73-
/**
74-
* Retrieve the model for a bound value.
75-
*
76-
* @param mixed $value
77-
* @return \Illuminate\Database\Eloquent\Model|null
78-
*/
79-
public function resolveRouteBinding($value);
80-
81-
/**
82-
* Convert the object into something JSON serializable.
83-
*
84-
* @return array
85-
*/
86-
public function jsonSerialize();
65+
public static function destroy($ids);
8766

8867
/**
8968
* Convert the model to its string representation.

0 commit comments

Comments
 (0)