Initialize the response array
This commit is contained in:
@@ -187,6 +187,8 @@ abstract class AbstractApiController extends Controller
|
||||
*/
|
||||
protected function respond()
|
||||
{
|
||||
$response = [];
|
||||
|
||||
if (!empty($this->meta)) {
|
||||
$response['meta'] = $this->meta;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user