That works just fine.
This is how you would do it without the change (assuming you are using Input
and want to add company_id
):
$input = Input::all();
$input['company_id'] = $company->id;
Model::create($input);
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community