Add function insert name and translation into DB
This commit is contained in:
@@ -35,4 +35,22 @@ class WordsController extends Controller
|
||||
|
||||
return redirect('/words');
|
||||
}
|
||||
|
||||
/**
|
||||
* Update an existing Word in the database.
|
||||
*/
|
||||
public function update(Request $request): RedirectResponse
|
||||
{
|
||||
|
||||
return redirect('/words');
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete an existing Word in the database.
|
||||
*/
|
||||
public function delete($id): RedirectResponse
|
||||
{
|
||||
word::destroy($id);
|
||||
return redirect('/words');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user