<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Validator;

class Message extends Model
{
    use HasFactory;
    protected $table = 'messages';

    protected $fillable = [
        'user_id',
        'body',
        'status',
        'character_count',
        'content_type',
        'sms_count',
        'ip_address',
    ];
    public function validate($input)
    {
        $validate = Validator::make($input, [
            'body' => 'required'
        ]);

        return $validate;
    }

}
