How to forging key insert in database laravel?

|
AbhishekGupta_9 2020-09-24 21:30:54
But it is not working
2020-09-24 21:33:08
create this first
2020-09-24 21:33:24
cheeked in controller
2020-09-24 21:33:39
no problem and not fixed erorr
sticky98 2020-09-25 05:26:11
I think its v8 its on your route web.php you include your controller first
sticky98 2020-09-25 05:27:20
Guys please suggest a simple start up system for reference purposes only …
ManojRoy19 2020-09-25 06:22:34
Jadidi_82 2020-09-24 21:16:21
hello guys. I dont know why today with making any controller I have this error

Read laravel 8 documentation bec defining route is change now, i was facing same issue bt after reading doc I solved it.

Mr_Classy 2020-09-25 10:13:25
How to forging key insert in database laravel ?
Mr_Classy 2020-09-25 10:13:48
Without any field in form.
WebBackend 2020-09-25 10:43:48
laravel_discuss-52300.jpg
When i generated pdf, image not show. is related to size of image? Any help please
Mujhtech 2020-09-25 13:20:10
Please am working on api but when am trying to use wrap with collection static function in resources, but it’s not working
2020-09-25 17:21:25
laravel_discuss-52308.jpg

2020-09-25 17:22:03
2020-09-25 17:21:25

laravel_discuss-52309.jpg

2020-09-25 17:22:24
but when i edit my users just their names changed
2020-09-25 17:22:51
their usertypes it doesnt changes
Spirittkat 2020-09-25 17:31:49
Hello, need help please. I have my ionic app with laravel 7 backend.
I need to upload images and video files to my server… How can I implement it ?
DesolatorMagno 2020-09-25 18:30:52
2020-09-25 17:22:51
their usertypes it doesnt changes

Did you try looking at the request to see if all the data reach the controller?
Validated only return the data that have validation.
Could be a problem with mass assignment (fillable).

2020-09-25 18:33:47
DesolatorMagno 2020-09-25 18:30:52
Did you try looking at the request to see if all the data reach the controller?
Validated only return the data that have validation.
Could be a problem with mass assignment (fillable).

yes i saw it its for fillabe 🙁

2020-09-25 18:34:30
laravel_discuss-52315.jpg

2020-09-25 18:34:45
its work in 30minute ago 😐
2020-09-25 18:35:00
i wrote relationships on Model
2020-09-25 18:36:09
User , hasmany system
system , belongsTo user
{{ $system->user->name }}
Its for author name
DesolatorMagno 2020-09-25 18:36:57
Well, I won’t have electricity or internet for the next 5 hours, so good luck.
hardik 2020-09-25 18:44:24
laravel_discuss-52320.jpg

hardik 2020-09-25 18:45:45
2020-09-25 18:34:30

Try to dump

Diego 2020-09-25 18:53:53
2020-09-25 18:34:30

dd($system);

Diego 2020-09-25 19:02:19
laravel_discuss-52325.jpg
Anyone can say me why I dont recieved the object $categoria filled?
Diego 2020-09-25 19:02:45
laravel_discuss-52326.jpg
I expect something like that
hardik 2020-09-25 19:02:57
Wah
Diego 2020-09-25 19:03:39
laravel_discuss-52328.jpg
but I receive this😅 an empty object
Diego 2020-09-25 19:04:25
Any ideas?
hardik 2020-09-25 19:06:33
Categories is model !?
Diego 2020-09-25 19:06:47
hardik 2020-09-25 19:06:33
Categories is model !?

Yes! is a model

hardik 2020-09-25 19:07:10
$category ->get() try
Diego 2020-09-25 19:08:32
hardik 2020-09-25 19:07:10
$category ->get() try

It works!! great, why was that?

Diego 2020-09-25 19:09:23
I always work without the ‘->get()’🤔
Diego 2020-09-25 19:13:39
laravel_discuss-52338.jpg
Now I see, I receive as a Collection class🤔
Diego 2020-09-25 19:14:01
No as a Category object
hardik 2020-09-25 19:19:13
Are you want to access all row ?
hardik 2020-09-25 19:19:57
You can access only these columns,
Diego 2020-09-25 19:22:06
hardik 2020-09-25 19:19:13
Are you want to access all row ?

yes and I have access to all rows, but I would like to recieve this as a Category Object instead of a Collection class🤔

hardik 2020-09-25 19:22:55
It is object without get ,
Diego 2020-09-25 19:24:07
hardik 2020-09-25 19:22:55
It is object without get ,

yes but it s an empty object, and I expect a filled Object

hardik 2020-09-25 19:31:14
Use ->all()
Diego 2020-09-25 19:34:10
Diego 2020-09-25 19:13:39
Now I see, I receive as a Collection class🤔

I receive this

hardik 2020-09-25 19:36:52
In your point of view Class mean array !? You getting array ?
2020-09-25 19:39:32
Diego 2020-09-25 18:53:53
dd($system);

bro its laravel bug

mynameisbrad 2020-09-25 19:46:21
@coco2791 just try using ->first() instead for ->get() and you will get just the object, not the whole collection
SunnyGuha 2020-09-25 21:30:29
Is it possible to make an exam system on laravel
Pro 2020-09-25 21:32:47
yes
|