Fix Delete/Switch Broken

This commit is contained in:
SahrulGnwn 2022-08-12 17:36:08 +07:00
parent a28e3030af
commit bc5a17157d

View file

@ -163,7 +163,7 @@ class TicketsController extends Controller
public function dataTableBlacklist()
{
$query = TicketBlacklist::with(['user']);
$query->select('ticket_blacklists.*');
return datatables($query)
->editColumn('user', function (TicketBlacklist $blacklist) {
return '<a href="' . route('admin.users.show', $blacklist->user->id) . '">' . $blacklist->user->name . '</a>';