public function index(Request $req) { $page = $req->input('page', 1); $limit = $req->input('limit', 12); $offset = ($page - 1) * $limit; $data = Helper::getCommunities($limit, $offset, true); $communities = $data->collection; $paging = Helper::paginate($data->total, $limit, $offset, 5); $paging = Paging::generate(url()->current(), $paging); return view('community.rev-index', array( 'communities' => $communities, 'paging' => $paging, )); } public function detail($id) { $data = TblCommunity::where('id_community', '=', $id) ->first(); if (!$data) return Redirect::to('/community'); $next = TblCommunity::where('id_community', '=', $data->id_community + 1)->first(); $prev = TblCommunity::where('id_community', '=', $data->id_community - 1)->first(); // $series_raw = LeagueSeries::where('id_community', '=', $id) // ->orderBy('year','desc') // ->orderBy('number', 'asc') // ->get(); $series_raw = Rank::where('community_id', '=', $id) ->orderBy('year','desc') ->orderBy('number', 'asc') ->get(); $year = (int)date('Y'); $start = TblSchedule::select(DB::raw('YEAR(FROM_UNIXTIME(date)) as year'))->orderBy('id_schedule','ASC')->limit(1)->first(); $years = range((int)$start->year, $year); $series = array( 'year' => $years, 'number' => range(1, 10), 'rank' => array() ); if(count($series_raw)) {
"Class 'App\Http\Controllers\Redirect' not found"
Key | Value |
PATH | "/usr/local/bin:/usr/bin:/bin"
|
TEMP | "/tmp"
|
TMP | "/tmp"
|
TMPDIR | "/tmp"
|
PWD | "/"
|
HTTP_ACCEPT | "*/*"
|
CONTENT_LENGTH | "0"
|
HTTP_HOST | "www.trialgame.id"
|
HTTP_REFERER | "http://www.trialgame.id/community/detail/249"
|
HTTP_USER_AGENT | "claudebot"
|
REDIRECT_UNIQUE_ID | "ZgbiamT3uPgQkhkfiqWTLgAAADM"
|
REDIRECT_HTTPS | "on"
|
REDIRECT_SSL_TLS_SNI | "www.trialgame.id"
|
REDIRECT_STATUS | "200"
|
UNIQUE_ID | "ZgbiamT3uPgQkhkfiqWTLgAAADM"
|
HTTPS | "on"
|
SSL_TLS_SNI | "www.trialgame.id"
|
SERVER_SIGNATURE | "" |
SERVER_SOFTWARE | "Apache"
|
SERVER_NAME | "www.trialgame.id"
|
SERVER_ADDR | "10.0.10.150"
|
SERVER_PORT | "443"
|
REMOTE_ADDR | "3.238.251.21"
|
DOCUMENT_ROOT | "/home/lovesubmarine/public_html"
|
REQUEST_SCHEME | "https"
|
CONTEXT_PREFIX | "" |
CONTEXT_DOCUMENT_ROOT | "/home/lovesubmarine/public_html"
|
SERVER_ADMIN | "webmaster@trialgame.id"
|
SCRIPT_FILENAME | "/home/lovesubmarine/public_html/index.php"
|
REMOTE_PORT | "34106"
|
REDIRECT_URL | "/community/detail/249"
|
SERVER_PROTOCOL | "HTTP/1.1"
|
REQUEST_METHOD | "GET"
|
QUERY_STRING | "" |
REQUEST_URI | "/community/detail/249"
|
SCRIPT_NAME | "/index.php"
|
PATH_INFO | "/community/detail/249"
|
PATH_TRANSLATED | "redirect:/index.php/community/detail/249/detail/249"
|
PHP_SELF | "/index.php"
|
REQUEST_TIME_FLOAT | 1711727210.6461
|
REQUEST_TIME | 1711727210
|
APP_NAME | "Laravel"
|
APP_ENV | "production"
|
APP_KEY | "base64:6GWAiHmDMQRuReJM4B9BtZqaZG1nezH7//RrqxmIXt8="
|
APP_DEBUG | "true"
|
APP_URL | "https://www.trialgame.id"
|
LOG_CHANNEL | "stack"
|
DB_CONNECTION | "mysql"
|
DB_HOST | "127.0.0.1"
|
DB_PORT | "3306"
|
DB_DATABASE | "lovesubm_trialgame"
|
DB_USERNAME | "lovesubm_root"
|
DB_PASSWORD | "Trialgame1989"
|
BROADCAST_DRIVER | "log"
|
CACHE_DRIVER | "file"
|
QUEUE_CONNECTION | "sync"
|
SESSION_DRIVER | "file"
|
SESSION_LIFETIME | "120"
|
REDIS_HOST | "127.0.0.1"
|
REDIS_PASSWORD | "null"
|
REDIS_PORT | "6379"
|
MAIL_DRIVER | "sendmail"
|
MAIL_HOST | "mail.trialgame.id"
|
MAIL_PORT | "465"
|
MAIL_USERNAME | "no-reply@trialgame.id"
|
MAIL_PASSWORD | "{H?e;0#n$X,s"
|
MAIL_ENCRYPTION | "tls"
|
PUSHER_APP_ID | "" |
PUSHER_APP_KEY | "" |
PUSHER_APP_SECRET | "" |
PUSHER_APP_CLUSTER | "mt1"
|
MIX_PUSHER_APP_KEY | "" |
MIX_PUSHER_APP_CLUSTER | "mt1"
|
Key | Value |
PATH | "/usr/local/bin:/usr/bin:/bin"
|
TEMP | "/tmp"
|
TMP | "/tmp"
|
TMPDIR | "/tmp"
|
PWD | "/"
|
APP_NAME | "Laravel"
|
APP_ENV | "production"
|
APP_KEY | "base64:6GWAiHmDMQRuReJM4B9BtZqaZG1nezH7//RrqxmIXt8="
|
APP_DEBUG | "true"
|
APP_URL | "https://www.trialgame.id"
|
LOG_CHANNEL | "stack"
|
DB_CONNECTION | "mysql"
|
DB_HOST | "127.0.0.1"
|
DB_PORT | "3306"
|
DB_DATABASE | "lovesubm_trialgame"
|
DB_USERNAME | "lovesubm_root"
|
DB_PASSWORD | "Trialgame1989"
|
BROADCAST_DRIVER | "log"
|
CACHE_DRIVER | "file"
|
QUEUE_CONNECTION | "sync"
|
SESSION_DRIVER | "file"
|
SESSION_LIFETIME | "120"
|
REDIS_HOST | "127.0.0.1"
|
REDIS_PASSWORD | "null"
|
REDIS_PORT | "6379"
|
MAIL_DRIVER | "sendmail"
|
MAIL_HOST | "mail.trialgame.id"
|
MAIL_PORT | "465"
|
MAIL_USERNAME | "no-reply@trialgame.id"
|
MAIL_PASSWORD | "{H?e;0#n$X,s"
|
MAIL_ENCRYPTION | "tls"
|
PUSHER_APP_ID | "" |
PUSHER_APP_KEY | "" |
PUSHER_APP_SECRET | "" |
PUSHER_APP_CLUSTER | "mt1"
|
MIX_PUSHER_APP_KEY | "" |
MIX_PUSHER_APP_CLUSTER | "mt1"
|