How to solve Missing argument 1 for App\Repositories\FavoriteRepository::delete() ? (Laravel 5.3)
问题 My service is like this : public function delete($store_id) { $result = $this->favorite_repository->delete($store_id); dd($result); } My repository is like this : public function delete($store_id) { $data = self::where('favoritable_id', $store_id)->delete(); return $data; } There exist error : Missing argument 1 for App\Repositories\FavoriteRepository::delete(), called in C:\xampp\htdocs\mysystem\app\Repositories\FavoriteRepository.php on line 45 and defined Can you help me? UPDATE The delete