error it cant see my table columns
It was working but now it doest works idk why.. when i create supplier it cant see brands and subbrands. there is my code also:
Supplier Model:
![No description](https://cdn.answeroverflow.com/1214094865365991485/image.png)
![No description](https://cdn.answeroverflow.com/1214094865718054943/image.png)
![No description](https://cdn.answeroverflow.com/1214094866145878016/image.png)
49 Replies
any ideas?
not sure, but an optimisation:
to
where i should write this ?
in tinker for example - php artisan tinker
add
\App\Models\
before the model namei should write it in model?
no, i mean, like this:
okay and where i should writ eit ?
aa
in terminal?
if u do php artisan tinker u can execute arbitrary code
yes
thats an option
![No description](https://cdn.answeroverflow.com/1214102524164968509/image.png)
i got it
what is it ? š
the benchmark results xd
amm and its works or what? dd
is it good ? ddd
idk in web i have same result
it cant read brand_ids and subbrand_ids
![No description](https://cdn.answeroverflow.com/1214103051523198976/Screenshot_2024-03-04_105150.png)
its doest takes brand_id and subbrand_id
literally yesterday it was working dd
just i remove db and create again but
in db everything is okay i think becouse
by hand in db its works
just there..
in the 1st message i sent, literally the 2 first words are "not sure", which i meant idk what is happening with ur code.
then i just wanted u to notice that
Brand::all()->pluck('name', 'id')
could be optimised. that is why i showed u the benchmark thing, so u can see the difference.
that is it.