replace url to route
This commit is contained in:
@ -45,7 +45,7 @@ class Transactions extends ApiController
|
||||
{
|
||||
$transaction = $this->dispatch(new CreateTransaction($request));
|
||||
|
||||
return $this->response->created(url('api/transactions/' . $transaction->id));
|
||||
return $this->response->created(route('api.transactions.show', $transaction->id));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user