<?php
namespace App\Http\Controllers\API;

use App\Models\User;
use Illuminate\Http\Request;
use App\Http\Controllers\AppBaseController;
use InfyOm\Generator\Criteria\LimitOffsetCriteria;
use App\Http\Controllers\API\Criteria\OrderbyPositionCriteria;
use Prettus\Repository\Criteria\RequestCriteria;
use Response;
use App\Http\Resources\User\UserResource;
use App\Http\Resources\ApiResourceCollection;
use Auth;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Validator;
use Log;
use Carbon\Carbon;
use Storage;
/**
 * Class DemoController
 * @package App\Http\Controllers\API
 */

class OtherAPIController extends AppBaseController
{
    
    public function checkAppVersion(){
        $array =[
            "latestVersion" => "0.9.0",
            "latestVersionCode" =>'9',
            "url" => Storage::disk('public')->url('oneplace-0.9.0.apk'),
            "releaseNotes"=> 'fixed new defects'

            ];
        return $this->sendDataResponse($array);
    }
    
}

