Add function insert name and translation into DB

This commit is contained in:
paoloGuagnano
2024-02-08 18:47:52 +01:00
parent f0746b67f5
commit dabe294cc2
5 changed files with 25 additions and 11 deletions

View File

@@ -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');
}
}