You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.
hi accroding to #158 i add this in register provider
public function register()
{
// Push your entity fully qualified namespace
app('rinvex.attributes.entities')->push(Company::class);
Attribute::typeMap([
'varchar' => \Rinvex\Attributes\Models\Type\Varchar::class,
]);
}
then in Company model i added this code
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Company extends Model
{
use HasFactory;
use \Rinvex\Attributes\Traits\Attributable;
}
i want to create a custome value to Company Model . do need to create company table ???? If true then why are we using eav?
The text was updated successfully, but these errors were encountered:
You may need to check the EAV Model first, it's not relevant to everyone, there's specific use cases where you may need it, so if you don't know why you need it, then most probably you don't 🙂
Hmmm, I'm not sure what exactly not clear, but if you mean Eloquent itself, then your best location to learn about it is the official documentation here https://laravel.com/docs/9.x/eloquent
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
hi accroding to #158 i add this in register provider
then in Company model i added this code
i want to create a custome value to Company Model . do need to create company table ???? If true then why are we using eav?
The text was updated successfully, but these errors were encountered: