api code global jain
This commit is contained in:
35
app/Models/Dharma.php
Normal file
35
app/Models/Dharma.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
use App\Models\Traits\Dharma\Attributes\DharmaAttributes;
|
||||
use App\Models\Traits\Dharma\Relationships\DharmaRelationships;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
|
||||
class Dharma extends Model
|
||||
{
|
||||
use HasFactory, DharmaAttributes, DharmaRelationships;
|
||||
|
||||
// use SoftDeletes;
|
||||
protected $table = 'dharma';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'name'
|
||||
];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $casts = [
|
||||
'id' => 'integer',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user