app/Http/Controllers/TicketController.php
/**
     * Display the specified resource.
     *
     * @param Ticket $ticket
     * @return Response
     */
Display the specified resource.
@param Ticket $ticket
@return Response
Display the specified resource . @param Ticket $ticket @return Response
public function show(Ticket $ticket)
    {
        if ($ticket->is_open && $ticket->status !== Ticket::STATUS_READ_BY_USER && $ticket->status !== Ticket::STATUS_READ_BY_BOTH) {
            $ticket->status = Ticket::STATUS_READ_BY_USER;
            $ticket->save();
        }
        return view('ticket.show', [
            'ticket' => $ticket,
        ]);
    }
public function show ( Ticket $ ticket ) { if ( $ ticket -> is_open && $ ticket -> status !== Ticket :: STATUS_READ_BY_USER && $ ticket -> status !== Ticket :: STATUS_READ_BY_BOTH ) { $ ticket -> status = Ticket :: STATUS_READ_BY_USER ; $ ticket -> save ( ) ; } return view ( 'ticket.show' , [ 'ticket' => $ ticket , ] ) ; }
Display the specified resource.
Display the specified resource .