Commit 5cdf52d8 by Francisco Salazar

asesores y migracion

parent 77d3594a
......@@ -81,8 +81,10 @@ class AdminProductController extends Controller
$categories = Category::pluck('name', 'id');
$subcategories = SubCategory::where("category_id", $product->category_id)->pluck('name', 'id');
$variable = Variable::first();
$asesores = Asesor::pluck('nombre', 'id');
return view('product::product.edit')
->with('asesores', $asesores)
->with('categories', $categories)
->with('subcategories', $subcategories)
->with('product', $product)
......
......@@ -15,20 +15,20 @@ class AddExtrasToProductsTable extends Migration
{
Schema::table('products', function (Blueprint $table) {
$table->double('precio_renta', 8, 2)->nullable();
$table->double('precio_renta', 12, 2)->nullable();
$table->string('tipo_moneda_renta', 455)->nullable();
$table->string('precio_renta_tiene_oferta')->nullable();
$table->double('precio_renta_oferta', 8, 2)->nullable();
$table->double('precio_renta_oferta', 12, 2)->nullable();
$table->double('precio_venta', 8, 2)->nullable();
$table->double('precio_venta', 12, 2)->nullable();
$table->string('tipo_moneda_venta', 455)->nullable();
$table->string('precio_venta_tiene_oferta')->nullable();
$table->double('precio_venta_oferta', 8, 2)->nullable();
$table->double('precio_venta_oferta', 12, 2)->nullable();
$table->double('metros_construccion', 8, 2)->nullable();
$table->double('metros_terreno', 8, 2)->nullable();
$table->double('metros_frente', 8, 2)->nullable();
$table->double('metros_fondo', 8, 2)->nullable();
$table->string('metros_construccion')->nullable();
$table->string('metros_terreno')->nullable();
$table->string('metros_frente')->nullable();
$table->string('metros_fondo')->nullable();
$table->integer('banos')->nullable();
$table->integer('medios_banos')->nullable();
......
......@@ -6,5 +6,5 @@ $vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'Onestartup\\Product\\' => array($baseDir . '/src'),
'Onestartup\\ProductPrimerPlano\\' => array($baseDir . '/src'),
);
......@@ -9,12 +9,12 @@ class ComposerStaticInit7173633b0cb420d97a2e8a09a0590ba0
public static $prefixLengthsPsr4 = array (
'O' =>
array (
'Onestartup\\Product\\' => 19,
'Onestartup\\ProductPrimerPlano\\' => 30,
),
);
public static $prefixDirsPsr4 = array (
'Onestartup\\Product\\' =>
'Onestartup\\ProductPrimerPlano\\' =>
array (
0 => __DIR__ . '/../..' . '/src',
),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment