halo, any body can resolve my stuck?
somebody can resolve my problem, please?
how is this working?
How to update data in laravel by modal without refresh page and ajax?
Are you sure the relationship is well done?

Web

When I submit
Create UploadController, create the function Upload, give a name to your Route and call the name of your route in your form’s Action
Models:
Product
Each product has one category and multiple attributes
Category
Each category has many products and attibutes with custom values for category
Attribute
My problem is only in attribute model. This model contain only unique attributes name.
Each attribute has different value by category (e.g “size” attribute in “T-shirts” category has values like “X”, “S”, “XL” and in “boots” category has “39”, “41”, “42” values). I can’t create right solution to create relationships in this case for correctly get/search products by attribute or save/sync attributes to products using relationships.

halo, any body can resolve my stuck?

this my template
Please paste the code
{
$relasi = new Relasi();
// $gejalas = new Gejala();
$this->validate($request, [
‘permasalahan_id’ => ‘required’,
‘gejala_id’ => ‘required’,
]);
/* $relasi = [
‘permasalahan_id’ => $request[‘permasalahan_id’],
‘gejala_id’ => $request[‘gejala_id’],
];
*/
$relasi = Relasi::create($request->only([‘permasalahan_id’,’gejala_id’]));
// mengambil nilai dari inputan gejala
$gejalas = explode(“,”, $relasi);
// variable pengumpul nilai pada inputan gejala
$gejalas_ids = [];
foreach ($gejalas as $gejala) {
$gejala_db = Gejala::where(‘keteranganGejala’, trim($gejala))->firstOrCreate([‘keteranganGejala’ => trim($gejala)]);
$gejalas_ids[] = $tag_db->id;
}
$relasi->gejala()->attach($gejalas_ids);
// $relasi->save();
dd($relasi);
// return redirect()->route(‘relasi.index’)->with(‘status’,’Data Relasi Berhasil di Tambah’);
}
<label>Gejala-gejala </label>
<div class=”col-md-12″>
@foreach ($gejala as $gejala)
<div class=”checkbox”>
<label><input class=”flat” type=”checkbox” name=”gejala_id[]” value=”{{ $gejala->id }}”> {{ $gejala->keteranganGejala }} </label>
</div>
@endforeach
</div>
</div>
{
$relasi = new Relasi();
// $gejalas = new Gejala();
$this->validate($request, [
‘permasalahan_id’ => ‘required’,
‘gejala_id’ => ‘required’,
]);
/* $relasi = [
‘permasalahan_id’ => $request[‘permasalahan_id’],
‘gejala_id’ => $request[‘gejala_id’],
];
*/
$relasi = Relasi::create($request->only([‘permasalahan_id’,’gejala_id’]));
// mengambil nilai dari inputan gejala
$gejalas = explode(“,”, $relasi);
// variable pengumpul nilai pada inputan gejala
$gejalas_ids = [];
foreach ($gejalas as $gejala) {
$gejala_db = Gejala::where(‘keteranganGejala’, trim($gejala))->firstOrCreate([‘keteranganGejala’ => trim($gejala)]);
$gejalas_ids[] = $tag_db->id;
}
$relasi->gejala()->attach($gejalas_ids);
// $relasi->save();
dd($relasi);
// return redirect()->route(‘relasi.index’)->with(‘status’,’Data Relasi Berhasil di Tambah’);
}
somebody can resolve my problem, please?
<label>Gejala-gejala </label>
<div class=”col-md-12″>
@foreach ($gejala as $gejala)
<div class=”checkbox”>
<label><input class=”flat” type=”checkbox” name=”gejala_id[]” value=”{{ $gejala->id }}”> {{ $gejala->keteranganGejala }} </label>
</div>
@endforeach
</div>
</div>
how is this working?
i change it to
…
@foreach($gejala as $g)
..
This project is built to enhance African stock photo.
Fill and share the link. https://forms.gle/wS1V8kUYdvRL9mZk8
African Stock Photos, royalty-free images | Search millions of royalty free stock images, and photos from Africa.
magic
Please
new window i guess
There are many available but older versions, 7 has many updates which made things more easier.
If you know any, pls share.
Thanks bro..waiting for the time.
I cleared that
Send the link here

Help….

Are you sure that course_id = 1 exists in course table?
Yes, I had added it before