create new object for user

This commit is contained in:
2026-05-16 10:22:02 +03:30
parent a1bca2d80f
commit 3ca710228f
3 changed files with 11 additions and 0 deletions

View File

@@ -38,6 +38,15 @@ class RoadMaintenanceStationController extends Controller
));
}
public function findByCity(Request $request): JsonResponse
{
$stations = RahdariPoint::query()
->where('city_id', $request->city_id)
->get();
return $this->successResponse($stations);
}
/**
* Store a newly created resource in storage.
*/