replace url to route

This commit is contained in:
Cüneyt Şentürk
2020-08-11 16:52:10 +03:00
parent deee58af52
commit 10bd79ad7a
28 changed files with 41 additions and 35 deletions

View File

@ -67,7 +67,7 @@ class Contacts extends ApiController
{
$contact = $this->dispatch(new CreateContact($request));
return $this->response->created(url('api/contacts/' . $contact->id));
return $this->response->created(route('api.contacts.show', $contact->id));
}
/**