File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 22
33namespace PPSpaces \Repositories ;
44
5+ use JsonSerializable ;
6+ use Illuminate \Support \Traits \ForwardsCalls ;
57use Illuminate \Contracts \Routing \UrlRoutable ;
68use PPSpaces \Contracts \Model as RepositoryContract ;
79
8- abstract class Model implements RepositoryContract, UrlRoutable {
10+ abstract class Model implements RepositoryContract, JsonSerializable, UrlRoutable {
11+
12+ use ForwardsCalls;
913
1014 /**
1115 * The repository instance.
@@ -86,6 +90,16 @@ public function delete($id) {
8690 return $ this ->repository ->findOrFail ($ id )->delete ();
8791 }
8892
93+ /**
94+ * Destroy the models for the given IDs.
95+ *
96+ * @param \Illuminate\Support\Collection|array|int $ids
97+ * @return int
98+ */
99+ public static function destroy ($ ids ) {
100+ //
101+ }
102+
89103 /**
90104 * Get the value of the model's route key.
91105 *
You can’t perform that action at this time.
0 commit comments