#95 working characteristic relationship
state: closed opened by: elis47 on: 5/19/2017
Comments
from: adrianharabula on: 5/19/2017
Reviewed 3 of 5 files at r1, 11 of 11 files at r2. Review status: all files reviewed at latest revision, 5 unresolved discussions.
app/app/Http/Controllers/ProductsController.php, line 21 at r2 (raw file):
$group = \App\Condrgroup::find(1);
return view('viewProduct')->with('product', $product)
->with('group', $group);
aici o să ştergem asta
app/database/migrations/2017_05_07_000031_create_characterizables_table.php, line 16 at r2 (raw file):
public function up()
{
Schema::create('characterizables', function (Blueprint $table) {
minunea!!!!
app/database/seeds/DatabaseSeeder.php, line 22 at r2 (raw file):
$this->call(ProductUserTableSeeder::class);
$this->call(CharacteristicsTableSeeder::class);
// $this->call(CharacterizablesTableSeeder::class);
yes, that was definitely not working
app/resources/views/viewProduct.blade.php, line 29 at r2 (raw file):
<h5> {{ $group->characteristics[0]->name }}: {{ $group->characteristics[0]->values() }}</h5>
in sfarsit, working code!!!!
app/resources/views/viewProduct.blade.php, line 30 at r2 (raw file):
aracteristic->name }}: {{ $characteristic->values() }}</h5> @endforeach
<h5> {{ $group->characteristics[0]->name }}: {{ $group->characteristics[0]->values() }}</h5>
Comments from Reviewable