magicai / app /Models /Folders.php
Softin Trading
Initial commit from Github
5f32fbd
Raw History Blame Contribute Delete
366 Bytes
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
class Folders extends Model
{
protected $fillable = [
'name',
'created_by',
'team_id',
];
public function userOpenais(): HasMany
{
return $this->hasMany(UserOpenai::class, 'folder_id');
}
}