<?php

namespace App\Http\Resources\Notification;

use Illuminate\Http\Resources\Json\JsonResource;

class NotificationResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'id' => $this->id,
            'user_id' => (string) $this->user_id,
            'role_id' => (string) $this->role_id,
            'title' => (string) $this->title,
            'message' => (string) $this->message,
            'type' => (string) $this->type,
            'status' => (string) $this->status

        ];
    }
}
