---
description: how to call trait inside model.
---

# Use in Model

```php

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Waad\Metadata\Traits\HasOneMetadata;

class Company extends Model
{
    use HasOneMetadata;  // ----> use this trait

    protected $fillable = [
        'name',
        'address',
        'status',
    ];

    protected $casts = [
        'status' => 'boolean',
    ];
}

```

