dd($validated) also shows me role_id in array all 3 values except role_id is caught except role_id I get error that role_id isn't assigned value and the generated query below: insert into `users` ( `email`, `password`, `name`, `updated_at`, `created_at` )values( abc@gmail.com...
$data =$this->request->all();$this->modelItem->getForm()->updateRequestData($data); $rules =$this->modelItem->getForm()->getValidationRules();$this->instance->validate($data, $rules);$this->instance->fill($data);if(method_exists($this->instance,'getRepository')) {if(method_exists...
* Update the specified resource in storage. * PUT /tasks/{id} * *@paramProject $project, Task $task *@returnResponse */publicfunctionupdate(Project $project, Task $task){ $input = array_except(Input::all(),'_method'); $task->fill($input);if($task->updateUniques()) {returnRedirect:...
// Java program to demonstrate // fill() method // for Integer value import java.util.*; public class GFG1 { public static void main(String[] argv) throws Exception { // creating object of List<Integer> List<Integer> arrlist = new ArrayList<Integer>(); // Adding element to srclst ...
I'm trying to get a device info saved into my database but I'm getting an error which says: Non-static method Illuminate\Database\Eloquent\Model::fill() should not be called statically" Here is the Model code: <?php namespace App\Models; use Illuminate\Database\E...