skip to Main Content

how to Laravel eloquent having array

how to type this sql in laravel eloquent 10 $data = array:2 [ 0 => "3" 1 => "5" 2 => "1" ] relations public function followActionFollowStudent() { return $this->hasMany(FollowActionFollowStudent::class, 'follow_student_id', id'); } i need sql as this below select…

VIEW QUESTION

Saving records to database Laravel 10

I'm trying to save the data from the form. However, there is no record when I check the database side. I'm using Laravel 10 and mySQL v5.7. **Controller **store() public function store(Request $request) { $personnelRegistry = null; $personnerlRegistryId = (int)$request->input('personnelRegistryId',…

VIEW QUESTION
Back To Top
Search