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.

23 lines
386 B

2 years ago
  1. <?php
  2. namespace App\Documents;
  3. use Illuminate\Database\Eloquent\Factories\HasFactory;
  4. use Jenssegers\Mongodb\Eloquent\Model;
  5. class PolicyDocument extends Model
  6. {
  7. use HasFactory, BaseDocument;
  8. protected $connection = 'mongodb';
  9. protected $fillable = [
  10. 'name',
  11. 'labels',
  12. 'needs',
  13. ];
  14. protected $casts = [
  15. 'needs' => 'array'
  16. ];
  17. }