write tests for azmayesh resources

This commit is contained in:
2024-11-03 14:47:25 +03:30
parent 1a15a5d7ed
commit f37cfdb845
14 changed files with 1124 additions and 4 deletions

View File

@@ -69,6 +69,8 @@ class AzmayeshSampleController extends Controller
*/
public function update(UpdateRequest $request, AzmayeshSample $azmayeshSample)
{
$azmayesh = Azmayesh::query()->findOrFail($request->azmayesh_id);
$azmayeshSample->update([
'azmayesh_id' => $azmayesh->id,
'azmayesh_project_name' => $azmayesh->project_name,