File size: 647B
<?php
namespace App\Http\Controllers;
use App\Traits\SupportTicketManager;
class TicketController extends Controller
{
use SupportTicketManager;
public function __construct()
{
$this->activeTemplate = activeTemplate();
$this->layout = 'frontend';
$this->middleware(function ($request, $next) {
$this->user = auth()->user();
if ($this->user) {
$this->layout = 'frontend';
}
return $next($request);
});
$this->redirectLink = 'ticket.view';
$this->userType = 'user';
$this->column = 'user_id';
}
}