Ocultando los campos de timestamps de los modelos
This commit is contained in:
@@ -11,6 +11,7 @@ class Factura extends Model {
|
||||
use UuidPrimaryKey, SoftDeletes;
|
||||
|
||||
protected $table = 'facturas';
|
||||
protected $hidden = ['created_at', 'updated_at', 'deleted_at'];
|
||||
protected $fillable = ['id', 'numero', 'monto_bruto', 'compra_id'];
|
||||
|
||||
public static function findOrFail($id) {
|
||||
|
||||
Reference in New Issue
Block a user