<?php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier;
class VerifyCsrfToken extends BaseVerifier
{
/**
* The URIs that should be excluded from CSRF verification.
*
* @var array
*/
protected $except = [
'payment'
];
}
public function getLive()
{
$games = Live::all();
$events = Events::all();
return view('live.index', compact('games', 'events'));
}
public function comments() {
return $this->hasMany('App\Comment')->selectRaw('id, name, SUBSTRING(comment, 30) as comment_limit')->orderBy('id', 'DESC');
}