You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
390 B

  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Factories\HasFactory;
  4. use Illuminate\Database\Eloquent\Model;
  5. class Comment extends Model
  6. {
  7. use HasFactory;
  8. protected $fillable = ['business_id', 'project_id', 'task_id', 'user_id', 'body'];
  9. public function rules()
  10. {
  11. return [
  12. 'body' => 'required|string|min:3|max:1000',
  13. ];
  14. }
  15. }