SyntaxSquad/DADProject#16 fix: i forgot this
This commit is contained in:
@@ -4,17 +4,17 @@ namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
class CoinTransactionType extends Model
|
||||
{
|
||||
use HasFactory, SoftDeletes;
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'coin_transaction_types';
|
||||
// FIX: Disable auto-timestamps because the table doesn't have updated_at/created_at columns
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = ['name', 'type', 'custom'];
|
||||
|
||||
protected $casts = [
|
||||
'custom' => 'array',
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'type',
|
||||
'description' // Include description if your table has it
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user