ApiController.php
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
namespace App\Http\Controllers;
use Illuminate\Support\Facades\Request;
use App\Model\User;
use App\Model\AppUserToken;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Log;
class ApiController extends Controller {
protected static $data = [
'message' => '',
'success' => false,
'errors' => [],
'status_code' => \Symfony\Component\HttpFoundation\Response::HTTP_OK
]; ...