$comp = new Company;
$comp->name = Request::get('name');
$comp->save();
$newId = $comp->id;
assuming the primary key is "id"
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community