Cleaned-BackEnd-Contact

This commit is contained in:
hazim
2019-05-09 12:26:14 +08:00
parent 039827f0c9
commit 1e751ecc32
16 changed files with 110 additions and 157 deletions
@@ -9,13 +9,15 @@
namespace App\Http\Controllers\Contacts;
use App\Classes\Constants;
use App\Modules\ControllerLogic\Contacts\UpdateContactLogic;
use Illuminate\Http\Request;
class UpdateContactController
{
public function update(int $id,Request $request, UpdateContactLogic $logic){
return $logic->execute($id, $request);
public function update(string $type, string $referenceId, int $id, Request $request, UpdateContactLogic $logic){
return $logic->execute($id,$referenceId, Constants::MODULE_TYPES[$type], $request);
}
}