Thanks to alxy on IRC who solved this for me. What worked is:
$category = Category::whereId($input['category'])->first();
$tip = $category->tips()->create([
'title' => $input['title'],
'description' => $input['description'],
'slug' => $input['slug'],
'link' => $input['link'],
'user_id' => $userId]);
return Redirect::route('createTipImages', $tip->id);
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community