Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Route::resource("/editArticle","Admin\Articles\EditArticleController",['only' => ['index', 'show', 'update','store']]);
- // Route::put('/editArticle/{show?}', 'Admin\Articles\EditArticleController@update');
- public function update(Request $request, $show)
- {
- Article::where('article_id', $show)
- ->update([
- 'title' => $request->name,
- 'description' => $request->description,
- 'author_id'=>Auth::user()->id,
- 'images' => $filename,
- 'rubric_id' => Rubric::where('title', $request->taskOption)->get()[0]->id,
- 'updated_at' => date("Y-m-d H:i:s")
- ]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement