crud de canales de venta y sectores

This commit is contained in:
2021-07-12 10:23:15 -04:00
parent 6eba4aa52b
commit 4f1dfd1221
8 changed files with 228 additions and 11 deletions

View File

@@ -11,6 +11,7 @@ class CanalVenta extends Model {
use UuidPrimaryKey, SoftDeletes;
protected $table = 'canales_venta';
protected $fillable = ['id', 'nombre', 'restaurante_id', 'sector_id', 'tipo_canal_id'];
public static function findOrFail($id) {
$canal_venta = CanalVenta::find($id);