OrderTickets

This commit is contained in:
Dennis 2022-08-09 07:42:15 +02:00 committed by GitHub
parent 044a5af2f7
commit 915d5e9854
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@ use App\Notifications\Ticket\User\ReplyNotification;
class TicketsController extends Controller
{
public function index() {
$tickets = Ticket::paginate(10);
$tickets = Ticket::orderBy('id','desc')->paginate(10);
$ticketcategories = TicketCategory::all();
return view("moderator.ticket.index", compact("tickets", "ticketcategories"));
}